.due-diligence-scroll-panel {
  scrollbar-color: var(--fundaro-brand-300) var(--fundaro-border);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.due-diligence-scroll-panel::-webkit-scrollbar {
  height: 0.65rem;
  width: 0.65rem;
}

.due-diligence-scroll-panel::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--fundaro-border) 72%, transparent);
  border-radius: 9999px;
}

.due-diligence-scroll-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--fundaro-brand-300) 0%, var(--fundaro-text-muted) 100%);
  border: 2px solid color-mix(in srgb, var(--fundaro-surface) 92%, transparent);
  border-radius: 9999px;
}

.due-diligence-scroll-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--fundaro-brand-400) 0%, var(--fundaro-text-secondary) 100%);
}
:root {
  --fundaro-brand-50: #f0f3ff;
  --fundaro-brand-100: #e2e8ff;
  --fundaro-brand-200: #c6d2ff;
  --fundaro-brand-300: #9fb1f4;
  --fundaro-brand-400: #6f8de8;
  --fundaro-brand-500: #466be0;
  --fundaro-brand-600: #3157d5;
  --fundaro-brand-700: #2949b8;
  --fundaro-brand-800: #223c98;
  --fundaro-brand-900: #1e347c;
  --fundaro-ink: #161b22;
  --fundaro-text: #263041;
  --fundaro-text-secondary: #5d6878;
  --fundaro-text-muted: #6b7687;
  --fundaro-canvas: #ffffff;
  --fundaro-surface: #f7f8fa;
  --fundaro-surface-raised: #fbfcfd;
  --fundaro-border: #dde2ea;
  --fundaro-divider: #e9edf2;
  --fundaro-success: #177a4b;
  --fundaro-success-tint: #eaf7f0;
  --fundaro-warning: #956300;
  --fundaro-warning-tint: #fff6d8;
  --fundaro-error: #c13c37;
  --fundaro-error-tint: #fdedec;
  --fundaro-info: #176ea6;
  --fundaro-info-tint: #eaf5fb;
  --fundaro-evidence: #087b76;
  --fundaro-evidence-tint: #e7f6f4;
  --fundaro-ai: #6655a6;
  --fundaro-ai-tint: #f0edfa;
  --fundaro-focus: #6f8de8;
  --fundaro-font-sans: Inter, Arial, sans-serif;
  --fundaro-space-1: 4px;
  --fundaro-space-2: 8px;
  --fundaro-space-3: 12px;
  --fundaro-space-4: 16px;
  --fundaro-space-5: 20px;
  --fundaro-space-6: 24px;
  --fundaro-space-8: 32px;
  --fundaro-space-10: 40px;
  --fundaro-space-12: 48px;
  --fundaro-space-16: 64px;
  --fundaro-radius-control: 8px;
  --fundaro-radius-container: 12px;
  --fundaro-radius-pill: 999px;
  --fundaro-control-height: 40px;
  --fundaro-control-height-compact: 32px;
  --fundaro-row-height: 48px;
  --fundaro-row-height-compact: 40px;
  --fundaro-motion-fast: 120ms;
  --fundaro-motion-default: 160ms;
  --fundaro-easing: cubic-bezier(0.2, 0, 0, 1);
  --fundaro-dark-bg: #08090a;
  --fundaro-dark-surface: #191a1b;
  --fundaro-dark-fg: #f7f8f8;
  --fundaro-dark-fg-secondary: #d0d6e0;
  --fundaro-dark-muted: #8a8f98;
  --fundaro-dark-meta: #62666d;
  --fundaro-dark-border: rgb(255 255 255 / 8%);
  --fundaro-dark-border-soft: rgb(255 255 255 / 5%);
  --fundaro-dark-overlay: rgb(255 255 255 / 2.5%);
  --fundaro-dark-overlay-hover: rgb(255 255 255 / 5.5%);
  --fundaro-dark-accent: #5e6ad2;
  --fundaro-dark-accent-hover: #828fff;
  --fundaro-dark-accent-active: #4752c4;
  --fundaro-dark-success: #27a644;
  --fundaro-dark-warning: #eab308;
  --fundaro-dark-danger: #dc2626;
}

html {
  background: var(--fundaro-canvas);
  color-scheme: light;
}

body {
  color: var(--fundaro-text);
  font-family: var(--fundaro-font-sans);
}

::selection {
  background: var(--fundaro-brand-200);
  color: var(--fundaro-ink);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--fundaro-focus);
  outline-offset: 2px;
}

:where(button, input, select, textarea):disabled {
  cursor: not-allowed;
}

.fundaro-focus-ring:focus-visible {
  outline: 2px solid var(--fundaro-focus);
  outline-offset: 2px;
}

.fundaro-tabular {
  font-variant-numeric: tabular-nums;
}

.company-self-service {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: var(--fundaro-radius-container);
  color: var(--fundaro-dark-fg-secondary);
  background: var(--fundaro-dark-bg);
  font-feature-settings: "cv01", "ss03";
}

/* Company self-service screens predate product themes and their component
   rules use the dark palette names below. Remap those tokens within the
   component so every page without an explicit dark theme uses the light palette. */
body:not([data-product-theme="dark"]) .company-self-service {
  --fundaro-dark-bg: var(--fundaro-canvas);
  --fundaro-dark-surface: var(--fundaro-surface-raised);
  --fundaro-dark-fg: var(--fundaro-ink);
  --fundaro-dark-fg-secondary: var(--fundaro-text);
  --fundaro-dark-muted: var(--fundaro-text-secondary);
  --fundaro-dark-meta: var(--fundaro-text-muted);
  --fundaro-dark-border: var(--fundaro-border);
  --fundaro-dark-border-soft: var(--fundaro-divider);
  --fundaro-dark-overlay: var(--fundaro-surface);
  --fundaro-dark-overlay-hover: var(--fundaro-brand-50);
  --fundaro-dark-accent: var(--fundaro-brand-600);
  --fundaro-dark-accent-hover: var(--fundaro-brand-700);
  --fundaro-dark-accent-active: var(--fundaro-brand-800);
  --fundaro-dark-warning: var(--fundaro-warning);
  --fundaro-dark-danger: var(--fundaro-error);
}

.company-self-service--narrow,
.company-self-service--accept {
  max-width: 760px;
  margin-inline: auto;
}

.company-self-service a {
  color: var(--fundaro-dark-accent-hover);
}

.company-self-service a:focus-visible,
.company-self-service button:focus-visible,
.company-self-service input:focus-visible,
.company-self-service select:focus-visible,
.company-self-service summary:focus-visible {
  outline: 2px solid var(--fundaro-dark-accent-hover);
  outline-offset: 2px;
}

.company-self-service__header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.company-self-service__header > div:first-child {
  min-width: 0;
}

.company-self-service__header h1 {
  margin: 0;
  color: var(--fundaro-dark-fg);
  font-size: 1.75rem;
  font-weight: 590;
  letter-spacing: -0.018em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.company-self-service__header p:not(.company-self-service__eyebrow) {
  max-width: 68ch;
  margin: 6px 0 0;
  color: var(--fundaro-dark-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.company-self-service__eyebrow {
  margin: 0 0 5px;
  color: var(--fundaro-dark-muted);
  font-size: 0.6875rem;
  font-weight: 590;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-self-service__panel {
  min-width: 0;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: var(--fundaro-radius-control);
  background: var(--fundaro-dark-overlay);
}

.company-self-service__section {
  margin-top: 14px;
  overflow: hidden;
}

.company-self-service__panel-heading {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--fundaro-dark-border-soft);
}

.company-self-service__panel-heading h2 {
  margin: 0;
  color: var(--fundaro-dark-fg);
  font-size: 0.9375rem;
  font-weight: 590;
}

.company-self-service__panel-heading span,
.company-self-service__badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: 3px;
  color: var(--fundaro-dark-fg-secondary);
  font-size: 0.6875rem;
  white-space: nowrap;
}

.company-self-service__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.company-self-service__button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: 6px;
  color: var(--fundaro-dark-fg-secondary) !important;
  background: var(--fundaro-dark-overlay);
  font-size: 0.8125rem;
  font-weight: 510;
  line-height: 1.25;
  text-decoration: none;
}

.company-self-service__button:hover {
  color: var(--fundaro-dark-fg) !important;
  background: var(--fundaro-dark-overlay-hover);
}

.company-self-service__button--primary {
  border-color: transparent;
  color: var(--fundaro-dark-fg) !important;
  background: var(--fundaro-dark-accent);
}

.company-self-service__button--primary:hover {
  background: var(--fundaro-dark-accent-hover);
}

.company-self-service__button--primary:active {
  background: var(--fundaro-dark-accent-active);
}

.company-self-service__button--danger {
  color: var(--fundaro-dark-danger) !important;
}

.company-self-service__alert,
.company-self-service__safe-default {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: 6px;
  color: var(--fundaro-dark-muted);
  background: var(--fundaro-dark-overlay);
  font-size: 0.8125rem;
}

.company-self-service__alert strong,
.company-self-service__safe-default strong {
  color: var(--fundaro-dark-fg);
}

.company-self-service__alert--warning {
  border-color: var(--fundaro-dark-warning);
}

.company-self-service__alert--danger {
  border-color: var(--fundaro-dark-danger);
}

.company-self-service__stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: var(--fundaro-radius-control);
}

.company-self-service__stats article {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--fundaro-dark-border-soft);
}

.company-self-service__stats article:last-child {
  border: 0;
}

.company-self-service__stats span,
.company-self-service__stats strong {
  display: block;
}

.company-self-service__stats span {
  color: var(--fundaro-dark-muted);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.company-self-service__stats strong {
  margin-top: 4px;
  color: var(--fundaro-dark-fg);
  font-family: var(--fundaro-font-sans);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.company-self-service__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px 16px;
}

.company-self-service__summary > div {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--fundaro-dark-border-soft);
}

.company-self-service__summary dt {
  color: var(--fundaro-dark-meta);
  font-size: 0.6875rem;
}

.company-self-service__summary dd {
  margin: 3px 0 0;
  color: var(--fundaro-dark-fg-secondary);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.company-self-service__list article,
.company-self-service__connection-grid article {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fundaro-dark-border-soft);
}

.company-self-service__list article:last-child,
.company-self-service__connection-grid article:last-child {
  border: 0;
}

.company-self-service__list article > div:first-child,
.company-self-service__connection-grid article > div:first-child {
  min-width: 0;
}

.company-self-service__list strong,
.company-self-service__list small,
.company-self-service__connection-grid strong,
.company-self-service__connection-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.company-self-service__list strong,
.company-self-service__connection-grid strong {
  color: var(--fundaro-dark-fg-secondary);
  font-size: 0.8125rem;
}

.company-self-service__list small,
.company-self-service__connection-grid small {
  margin-top: 2px;
  color: var(--fundaro-dark-meta);
  font-size: 0.6875rem;
}

.company-self-service__connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-self-service__empty {
  margin: 0;
  padding: 24px 16px;
  color: var(--fundaro-dark-muted);
  text-align: center;
}

.company-self-service__tabs {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.company-self-service__tabs::-webkit-scrollbar {
  display: none;
}

.company-self-service__tab {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--fundaro-dark-border);
  color: var(--fundaro-dark-muted) !important;
  font-size: 0.75rem;
  text-decoration: none;
}

.company-self-service__form {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.company-self-service__purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.company-self-service__purpose-grid legend,
.company-self-service__field legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--fundaro-dark-fg);
  font-size: 0.875rem;
  font-weight: 590;
}

.company-self-service__hint {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--fundaro-dark-muted);
  font-size: 0.75rem;
}

.company-self-service__purpose-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  min-height: 92px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: 6px;
  background: var(--fundaro-dark-overlay);
}

.company-self-service__purpose-option:has(input:checked) {
  border-color: var(--fundaro-dark-accent-hover);
  background: var(--fundaro-dark-overlay-hover);
}

.company-self-service__purpose-option strong,
.company-self-service__purpose-option small {
  display: block;
}

.company-self-service__purpose-option strong {
  color: var(--fundaro-dark-fg);
  font-size: 0.8125rem;
}

.company-self-service__purpose-option small {
  margin-top: 4px;
  color: var(--fundaro-dark-muted);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.company-self-service__onboarding-option {
  grid-template-columns: minmax(0, 1fr);
  min-height: 72px;
  text-decoration: none;
}

.company-self-service__radio {
  width: 18px;
  height: 18px;
  accent-color: var(--fundaro-dark-accent);
}

.company-self-service__field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.company-self-service__field {
  min-width: 0;
  padding: 0;
  border: 0;
}

.company-self-service__field--wide {
  grid-column: 1 / -1;
}

.company-self-service__form:has(input[value="company_membership"]:checked)
  [data-invitation-purpose-field]:not([data-invitation-purpose-field="company_membership"]):not([data-invitation-purpose-field="fund_scope"]),
.company-self-service__form:has(input[value="external_fund"]:checked)
  [data-invitation-purpose-field]:not([data-invitation-purpose-field="external_fund"]):not([data-invitation-purpose-field="fund_scope"]),
.company-self-service__form:has(input[value="investor_engagement"]:checked)
  [data-invitation-purpose-field]:not([data-invitation-purpose-field="investor_engagement"]) {
  display: none;
}

.company-self-service__field label,
.company-self-service__form > label,
.company-self-service__inline-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--fundaro-dark-fg-secondary);
  font-size: 0.75rem;
  font-weight: 510;
}

.company-self-service input:not([type="radio"]):not([type="checkbox"]),
.company-self-service select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: 6px;
  color: var(--fundaro-dark-fg);
  background: var(--fundaro-dark-surface);
  font-size: 0.8125rem;
}

.company-self-service__field p {
  margin: 5px 0 0;
  color: var(--fundaro-dark-meta);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.company-self-service__checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.company-self-service__checks label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--fundaro-dark-border);
  border-radius: 6px;
}

.company-self-service__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.company-self-service__team {
  min-width: 0;
  overflow-x: auto;
}

.company-self-service__team table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.company-self-service__team th,
.company-self-service__team td {
  padding: 10px;
  border-bottom: 1px solid var(--fundaro-dark-border-soft);
  color: var(--fundaro-dark-muted);
  text-align: left;
  vertical-align: top;
}

.company-self-service__team th {
  color: var(--fundaro-dark-meta);
  font-size: 0.6875rem;
  font-weight: 510;
  white-space: nowrap;
}

.company-self-service__team td strong {
  color: var(--fundaro-dark-fg-secondary);
  overflow-wrap: anywhere;
}

.company-self-service__row-actions {
  position: relative;
}

.company-self-service__row-actions summary,
.company-self-service__impact summary {
  display: flex;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  color: var(--fundaro-dark-accent-hover);
}

.company-self-service__row-actions > div {
  display: grid;
  min-width: 240px;
  gap: 8px;
  padding: 10px;
}

.company-self-service__row-actions p,
.company-self-service__impact p {
  margin: 0;
  color: var(--fundaro-dark-muted);
  font-size: 0.6875rem;
}

.company-self-service__impact {
  margin-bottom: 14px;
  padding: 10px 14px;
}

.company-self-service__inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .company-self-service__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .company-self-service__stats article:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .company-self-service {
    padding: 16px 12px;
  }

  .company-self-service__header,
  .company-self-service__purpose-grid,
  .company-self-service__field-grid,
  .company-self-service__summary,
  .company-self-service__connection-grid,
  .company-self-service__inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .company-self-service__actions,
  .company-self-service__button {
    min-height: 44px;
  }

  .company-self-service__header .company-self-service__actions {
    width: 100%;
  }

  .company-self-service__header .company-self-service__button {
    flex: 1 1 auto;
  }

  .company-self-service__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-self-service__stats article:nth-child(odd) {
    border-right: 1px solid var(--fundaro-dark-border-soft);
  }

  .company-self-service__stats article:nth-child(even) {
    border-right: 0;
  }

  .company-self-service__team {
    overflow: visible;
  }

  .company-self-service__team table,
  .company-self-service__team thead,
  .company-self-service__team tbody,
  .company-self-service__team tr,
  .company-self-service__team td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .company-self-service__team thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .company-self-service__team tr {
    padding: 8px 12px;
    border-bottom: 1px solid var(--fundaro-dark-border);
  }

  .company-self-service__team td {
    display: grid;
    grid-template-columns: minmax(108px, 0.7fr) minmax(0, 1.3fr);
    gap: 8px;
    padding: 7px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .company-self-service__team td::before {
    content: attr(data-label);
    color: var(--fundaro-dark-meta);
    font-size: 0.6875rem;
  }

  .company-self-service__list article {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .company-self-service {
    padding-inline: 10px;
  }

  .company-self-service__actions,
  .company-self-service__panel-heading,
  .company-self-service__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .company-self-service__actions .company-self-service__button,
  .company-self-service__panel-heading > a,
  .company-self-service__search .company-self-service__button,
  .company-self-service__row-actions,
  .company-self-service__row-actions summary,
  .company-self-service__row-actions > div,
  .company-self-service__row-actions form,
  .company-self-service__row-actions .company-self-service__button {
    width: 100%;
    min-width: 0;
  }

  .company-self-service__panel-heading > a,
  .company-self-service__row-actions summary,
  .company-self-service__row-actions .company-self-service__button {
    min-height: 44px;
  }

  .company-self-service__team td {
    grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1.35fr);
  }

  .company-self-service__team td:last-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-self-service__team td:last-child::before {
    min-height: 20px;
  }

  .company-self-service__row-actions > div {
    padding-inline: 0;
  }
}

.fund-portfolio {
  container-name: fund-portfolio;
  container-type: inline-size;
  min-width: 0;
  margin-top: var(--fundaro-space-4);
  color: var(--fundaro-text);
}

.fund-portfolio turbo-frame {
  display: block;
  min-width: 0;
}

.fund-portfolio__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-container);
  background: var(--fundaro-surface-raised);
  box-shadow: 0 1px 2px rgb(22 27 34 / 5%);
}

.fund-portfolio__summary-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 76px;
  align-items: center;
  gap: 11px;
  padding: 12px 17px;
}

.fund-portfolio__summary-item + .fund-portfolio__summary-item {
  border-left: 1px solid var(--fundaro-divider);
}

.fund-portfolio__summary-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--fundaro-radius-control);
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface);
}

.fund-portfolio__summary-icon--data-room {
  color: var(--fundaro-evidence);
  background: var(--fundaro-evidence-tint);
}

.fund-portfolio__summary-icon--evaluation {
  color: var(--fundaro-ai);
  background: var(--fundaro-ai-tint);
}

.fund-portfolio__summary-icon--automation {
  color: var(--fundaro-ai);
  background: var(--fundaro-ai-tint);
}

.fund-portfolio__summary-icon--ready {
  color: var(--fundaro-success);
  background: var(--fundaro-success-tint);
}

.fund-portfolio__summary-value,
.fund-portfolio__summary-label {
  display: block;
}

.fund-portfolio__summary-value {
  color: var(--fundaro-ink);
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1.15;
}

.fund-portfolio__summary-label {
  margin-top: 2px;
  color: var(--fundaro-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.fund-portfolio__summary-scope {
  margin: 8px 2px 0;
  color: var(--fundaro-text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.fund-portfolio__toolbar {
  display: grid;
  grid-template-areas: "search filters sort";
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: var(--fundaro-space-3);
  margin-top: 14px;
}

.fund-portfolio__search-form {
  grid-area: search;
  min-width: 0;
}

.fund-portfolio__search {
  position: relative;
  min-width: 0;
}

.fund-portfolio__search-icon {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--fundaro-text-muted);
  pointer-events: none;
}

.fund-portfolio__search input {
  width: 100%;
  height: var(--fundaro-control-height);
  padding: 0 44px 0 38px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-control);
  color: var(--fundaro-ink);
  background: var(--fundaro-canvas);
  font-size: 0.875rem;
}

.fund-portfolio__search input::placeholder {
  color: var(--fundaro-text-muted);
  opacity: 1;
}

.fund-portfolio__search--clearable input {
  padding-right: 76px;
}

.fund-portfolio__search input::-webkit-search-cancel-button {
  display: none;
}

.fund-portfolio__search-submit,
.fund-portfolio__clear-search {
  position: absolute;
  top: 4px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--fundaro-text-secondary);
  background: transparent;
}

.fund-portfolio__search-submit {
  right: 4px;
}

.fund-portfolio__clear-search {
  right: 36px;
}

.fund-portfolio__search-submit:hover,
.fund-portfolio__clear-search:hover {
  color: var(--fundaro-ink);
  background: var(--fundaro-surface);
}

.fund-portfolio__filters {
  display: flex;
  grid-area: filters;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.fund-portfolio__filters::-webkit-scrollbar {
  display: none;
}

.fund-portfolio__filter {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  padding: 0 11px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-pill);
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-canvas);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.fund-portfolio__filter:hover {
  border-color: #b8c0cc;
  color: var(--fundaro-ink);
  background: var(--fundaro-surface);
}

.fund-portfolio__filter--active {
  border-color: var(--fundaro-ink);
  color: var(--fundaro-canvas);
  background: var(--fundaro-ink);
}

.fund-portfolio__filter--active:hover {
  border-color: var(--fundaro-ink);
  color: var(--fundaro-canvas);
  background: var(--fundaro-ink);
}

.fund-portfolio__sort {
  position: relative;
}

.fund-portfolio__sort-form {
  grid-area: sort;
}

.fund-portfolio__sort select {
  width: 100%;
  min-width: 180px;
  height: var(--fundaro-control-height);
  appearance: none;
  padding: 0 36px 0 12px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-control);
  color: var(--fundaro-text);
  background: var(--fundaro-canvas);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fund-portfolio__sort-icon {
  position: absolute;
  top: 11px;
  right: 10px;
  width: 18px;
  height: 18px;
  color: var(--fundaro-text-muted);
  pointer-events: none;
}

.fund-portfolio__worklist {
  margin-top: var(--fundaro-space-3);
  overflow: hidden;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-container);
  background: var(--fundaro-canvas);
}

.fund-portfolio__worklist-meta {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  gap: var(--fundaro-space-3);
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--fundaro-divider);
  color: var(--fundaro-text-muted);
  background: var(--fundaro-surface-raised);
  font-size: 0.75rem;
}

.fund-portfolio__worklist-meta h2 {
  margin: 0;
  color: var(--fundaro-text);
  font-size: 0.75rem;
  font-weight: 650;
}

.fund-portfolio__worklist-meta > span {
  font-variant-numeric: tabular-nums;
}

.fund-portfolio__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.fund-portfolio__col-fund {
  width: 24%;
}

.fund-portfolio__col-classification {
  width: 20%;
}

.fund-portfolio__col-investors {
  width: 9%;
}

.fund-portfolio__col-evaluations {
  width: 12%;
}

.fund-portfolio__col-documents {
  width: 17%;
}

.fund-portfolio__col-activity {
  width: 18%;
}

.fund-portfolio__table th {
  height: 38px;
  padding: 0 10px;
  color: var(--fundaro-text-muted);
  background: var(--fundaro-surface);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.fund-portfolio__table th:first-child,
.fund-portfolio__table td:first-child {
  padding-left: 16px;
}

.fund-portfolio__table th:last-child,
.fund-portfolio__table td:last-child {
  padding-right: 16px;
}

.fund-portfolio__table tbody tr {
  min-height: 88px;
  border-top: 1px solid var(--fundaro-divider);
  transition:
    background-color var(--fundaro-motion-fast) var(--fundaro-easing),
    box-shadow var(--fundaro-motion-fast) var(--fundaro-easing);
}

.fund-portfolio__table tbody tr:hover,
.fund-portfolio__table tbody tr:focus-within {
  background: var(--fundaro-brand-50);
  box-shadow: inset 3px 0 0 var(--fundaro-brand-600);
}

.fund-portfolio__table td {
  min-width: 0;
  height: 88px;
  padding: 10px;
  vertical-align: middle;
}

.fund-portfolio__fund-link,
.fund-portfolio__classification strong,
.fund-portfolio__secondary,
.fund-portfolio__activity-copy strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-portfolio__fund-link {
  color: var(--fundaro-ink);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.fund-portfolio__fund-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.fund-portfolio__secondary {
  color: var(--fundaro-text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.fund-portfolio__classification strong {
  color: var(--fundaro-text);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.4;
}

.fund-portfolio__investor-count,
.fund-portfolio__evaluation-count,
.fund-portfolio__document-count {
  color: var(--fundaro-text);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.fund-portfolio__workspace-kind {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  padding: 3px 7px;
  border-radius: var(--fundaro-radius-pill);
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface);
  font-size: 0.625rem;
  font-weight: 650;
  line-height: 1.2;
}

.fund-portfolio__workspace-kind span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-portfolio__workspace-kind--data-room-only {
  color: var(--fundaro-evidence);
  background: var(--fundaro-evidence-tint);
}

.fund-portfolio__workspace-kind--evaluation-active {
  color: var(--fundaro-ai);
  background: var(--fundaro-ai-tint);
}

.fund-portfolio__workspace-kind--evaluation-completed {
  color: var(--fundaro-success);
  background: var(--fundaro-success-tint);
}

.fund-portfolio__workspace-kind--invitation {
  color: var(--fundaro-warning);
  background: var(--fundaro-warning-tint);
}

.fund-portfolio__status {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--fundaro-radius-pill);
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1.2;
}

.fund-portfolio__status > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fund-portfolio__status-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.fund-portfolio__status--attention {
  color: var(--fundaro-error);
  background: var(--fundaro-error-tint);
}

.fund-portfolio__status--running {
  color: var(--fundaro-ai);
  background: var(--fundaro-ai-tint);
}

.fund-portfolio__status--processing {
  color: var(--fundaro-info);
  background: var(--fundaro-info-tint);
}

.fund-portfolio__status--pending {
  color: var(--fundaro-warning);
  background: var(--fundaro-warning-tint);
}

.fund-portfolio__status--ready {
  color: var(--fundaro-success);
  background: var(--fundaro-success-tint);
}

.fund-portfolio__status--review {
  color: var(--fundaro-info);
  background: var(--fundaro-info-tint);
}

.fund-portfolio__status--concluded {
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface);
}

.fund-portfolio__status--neutral {
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface);
}

.fund-portfolio__activity-layout {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: var(--fundaro-space-2);
}

.fund-portfolio__activity-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
}

.fund-portfolio__activity-icon--default {
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface);
}

.fund-portfolio__activity-icon--document {
  color: var(--fundaro-evidence);
  background: var(--fundaro-evidence-tint);
}

.fund-portfolio__activity-icon--ai {
  color: var(--fundaro-ai);
  background: var(--fundaro-ai-tint);
}

.fund-portfolio__activity-icon--note {
  color: var(--fundaro-info);
  background: var(--fundaro-info-tint);
}

.fund-portfolio__activity-icon--error {
  color: var(--fundaro-error);
  background: var(--fundaro-error-tint);
}

.fund-portfolio__activity-copy {
  display: block;
  min-width: 0;
}

.fund-portfolio__activity-copy strong {
  color: var(--fundaro-text);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1.35;
}

.fund-portfolio__activity-copy .fund-portfolio__secondary {
  margin-top: 2px;
  font-size: 0.6875rem;
}

.fund-portfolio__invitation-row {
  background: color-mix(in srgb, var(--fundaro-warning-tint) 35%, var(--fundaro-canvas));
}

.fund-portfolio__empty {
  display: grid;
  justify-items: center;
  padding: var(--fundaro-space-12) var(--fundaro-space-6);
  text-align: center;
}

.fund-portfolio__empty-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--fundaro-radius-control);
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface);
}

.fund-portfolio__empty h3 {
  margin: var(--fundaro-space-3) 0 0;
  color: var(--fundaro-ink);
  font-size: 1rem;
  font-weight: 650;
}

.fund-portfolio__empty p {
  max-width: 38rem;
  margin: var(--fundaro-space-1) 0 0;
  color: var(--fundaro-text-secondary);
  font-size: 0.875rem;
}

.fund-portfolio__empty-action {
  margin-top: var(--fundaro-space-4);
}

@container fund-portfolio (max-width: 1000px) {
  .fund-portfolio__toolbar {
    grid-template-areas:
      "search sort"
      "filters filters";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .fund-portfolio__status {
    align-items: flex-start;
    white-space: normal;
  }

  .fund-portfolio__table th,
  .fund-portfolio__table td {
    padding-right: 7px;
    padding-left: 7px;
  }

  .fund-portfolio__table th:first-child,
  .fund-portfolio__table td:first-child {
    padding-left: 12px;
  }

  .fund-portfolio__table th:last-child,
  .fund-portfolio__table td:last-child {
    padding-right: 12px;
  }
}

@media (max-width: 760px) {
  .fund-portfolio__page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--fundaro-space-3);
  }

  .fund-portfolio__page-header > :last-child {
    padding-top: 2px;
  }

  .fund-portfolio__new-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  .fund-portfolio__new-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .fund-portfolio {
    margin-top: var(--fundaro-space-3);
  }
}

@container fund-portfolio (max-width: 800px) {
  .fund-portfolio__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fund-portfolio__summary-item {
    grid-template-columns: 31px minmax(0, 1fr);
    min-height: 66px;
    gap: 9px;
    padding: 9px 11px;
  }

  .fund-portfolio__summary-item + .fund-portfolio__summary-item {
    border-left: 0;
  }

  .fund-portfolio__summary-item:nth-child(even) {
    border-left: 1px solid var(--fundaro-divider);
  }

  .fund-portfolio__summary-item:nth-child(n + 3) {
    border-top: 1px solid var(--fundaro-divider);
  }

  .fund-portfolio__summary-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .fund-portfolio__summary-icon {
    width: 31px;
    height: 31px;
  }

  .fund-portfolio__summary-icon svg {
    width: 16px;
    height: 16px;
  }

  .fund-portfolio__summary-value {
    font-size: 1.1875rem;
  }

  .fund-portfolio__summary-label {
    font-size: 0.6875rem;
  }

  .fund-portfolio__toolbar {
    grid-template-areas:
      "search search"
      "filters sort";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    margin-top: var(--fundaro-space-3);
  }

  .fund-portfolio__search input,
  .fund-portfolio__sort select {
    height: 44px;
  }

  .fund-portfolio__search-icon {
    top: 13px;
  }

  .fund-portfolio__search-submit {
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
  }

  .fund-portfolio__clear-search {
    top: 0;
    right: 44px;
    width: 44px;
    height: 44px;
  }

  .fund-portfolio__search--clearable input {
    padding-right: 88px;
  }

  .fund-portfolio__filter {
    min-height: 44px;
  }

  .fund-portfolio__sort {
    width: 44px;
  }

  .fund-portfolio__sort select {
    min-width: 44px;
    padding: 0;
    color: transparent;
  }

  .fund-portfolio__sort option {
    color: var(--fundaro-text);
  }

  .fund-portfolio__sort-icon {
    top: 13px;
    right: 13px;
    color: var(--fundaro-text);
  }

  .fund-portfolio__worklist {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .fund-portfolio__worklist-meta {
    min-height: 34px;
    padding: 0 2px;
    border: 0;
    background: transparent;
  }

  .fund-portfolio__table,
  .fund-portfolio__table tbody {
    display: block;
  }

  .fund-portfolio__table colgroup {
    display: none;
  }

  .fund-portfolio__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .fund-portfolio__table tbody {
    display: grid;
    gap: 10px;
  }

  .fund-portfolio__table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--fundaro-border);
    border-radius: var(--fundaro-radius-container);
    background: var(--fundaro-canvas);
  }

  .fund-portfolio__table tbody tr:hover,
  .fund-portfolio__table tbody tr:focus-within {
    background: var(--fundaro-canvas);
    box-shadow: inset 3px 0 0 var(--fundaro-brand-600);
  }

  .fund-portfolio__table td {
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 10px 12px;
  }

  .fund-portfolio__table th:first-child,
  .fund-portfolio__table td:first-child,
  .fund-portfolio__table th:last-child,
  .fund-portfolio__table td:last-child {
    padding-right: 12px;
    padding-left: 12px;
  }

  .fund-portfolio__table td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--fundaro-text-muted);
    content: attr(data-label);
    font-size: 0.625rem;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .fund-portfolio__fund-cell,
  .fund-portfolio__classification,
  .fund-portfolio__activity-cell {
    grid-column: 1 / -1;
  }

  .fund-portfolio__fund-cell {
    padding-top: 13px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--fundaro-divider);
    background: var(--fundaro-surface-raised);
  }

  .fund-portfolio__fund-cell::before {
    display: none !important;
  }

  .fund-portfolio__fund-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    font-size: 0.9375rem;
    white-space: normal;
  }

  .fund-portfolio__classification {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: var(--fundaro-space-2);
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid var(--fundaro-divider);
  }

  .fund-portfolio__classification::before {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0 !important;
  }

  .fund-portfolio__classification > * {
    grid-column: 2;
  }

  .fund-portfolio__classification strong,
  .fund-portfolio__classification .fund-portfolio__secondary {
    white-space: normal;
  }

  .fund-portfolio__investor-cell,
  .fund-portfolio__evaluation-cell {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  .fund-portfolio__evaluation-cell {
    border-left: 1px solid var(--fundaro-divider);
  }

  .fund-portfolio__document-cell {
    padding-top: 9px !important;
    padding-bottom: 11px !important;
    grid-column: 1 / -1;
  }

  .fund-portfolio__activity-cell {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    border-top: 1px solid var(--fundaro-divider);
  }

  .fund-portfolio__activity-copy strong,
  .fund-portfolio__activity-copy .fund-portfolio__secondary {
    white-space: normal;
  }

  .fund-portfolio__empty {
    padding: var(--fundaro-space-10) var(--fundaro-space-4);
    border: 1px solid var(--fundaro-border);
    border-radius: var(--fundaro-radius-container);
  }

  .fund-portfolio__empty-action {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* My company overview redesign */
.company-self-service--overview {
  --company-page: #f1f5f9;
  --company-card: #ffffff;
  --company-card-subtle: #f8fafc;
  --company-ink: #0f172a;
  --company-text: #334155;
  --company-muted: #64748b;
  --company-disabled: #94a3b8;
  --company-border: #e2e8f0;
  --company-border-strong: #cbd5e1;
  --company-blue-50: #eff6ff;
  --company-blue-100: #dbeafe;
  --company-blue-300: #93c5fd;
  --company-blue-500: #3b82f6;
  --company-blue-600: #2563eb;
  --company-blue-700: #1d4ed8;
  --company-blue-800: #1e40af;
  --company-blue-tint: #eaf2ff;
  --company-green: #059669;
  --company-green-dot: #10b981;
  --company-amber: #d97706;
  --company-red: #dc2626;
  container: company-overview / inline-size;
  display: flex;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin-inline: auto;
  padding: 0;
  flex-direction: column;
  gap: 24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: var(--company-text);
  background: var(--company-page);
  font-feature-settings: "cv01", "ss03";
}

body:has(.company-self-service--overview) #main-content {
  background: #f1f5f9;
}

body[data-product-theme="dark"]:has(.company-self-service--overview) #main-content {
  background: var(--fundaro-dark-bg);
}

body[data-product-theme="dark"] .company-self-service--overview {
  --company-page: var(--fundaro-dark-bg);
  --company-card: var(--fundaro-dark-surface);
  --company-card-subtle: var(--fundaro-dark-overlay);
  --company-ink: var(--fundaro-dark-fg);
  --company-text: var(--fundaro-dark-fg-secondary);
  --company-muted: var(--fundaro-dark-muted);
  --company-disabled: var(--fundaro-dark-meta);
  --company-border: var(--fundaro-dark-border);
  --company-border-strong: rgb(255 255 255 / 16%);
  --company-blue-50: rgb(94 106 210 / 14%);
  --company-blue-100: rgb(94 106 210 / 22%);
  --company-blue-300: #828fff;
  --company-blue-500: #828fff;
  --company-blue-600: var(--fundaro-dark-accent);
  --company-blue-700: #a5adff;
  --company-blue-800: #c4c9ff;
  --company-blue-tint: rgb(94 106 210 / 12%);
  --company-green: #34d399;
  --company-green-dot: #34d399;
  --company-amber: #fbbf24;
  --company-red: #f87171;
}

.company-self-service--overview [hidden] {
  display: none !important;
}

.company-self-service--overview :where(a, button, input, select, summary):focus-visible {
  outline: 0;
  border-color: var(--company-blue-500);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 15%);
}

.company-self-service--overview a {
  color: var(--company-blue-600);
  transition: color 120ms cubic-bezier(0.2, 0, 0, 1);
}

.company-self-service--overview a:hover {
  color: var(--company-blue-500);
}

.company-self-service--overview .company-self-service__header {
  margin: 0;
}

.company-overview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.company-overview__heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.company-self-service--overview .company-self-service__eyebrow {
  margin: 0;
  color: var(--company-blue-700);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.company-overview__title-row,
.company-overview__title-display {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.company-overview__title-display {
  gap: 12px;
}

.company-self-service--overview .company-self-service__header h1 {
  margin: 0;
  color: var(--company-ink);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.company-overview__subtitle {
  max-width: 56ch !important;
  margin: 0 !important;
  color: var(--company-muted) !important;
  font-size: 0.875rem !important;
  letter-spacing: -0.01em;
}

.company-overview__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--fundaro-radius-pill);
  color: var(--company-green);
  background: rgb(16 185 129 / 12%);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.company-overview__status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--company-green-dot);
}

.company-overview__status--restricted {
  color: var(--company-amber);
  background: rgb(245 158 11 / 14%);
}

.company-overview__status--restricted > span {
  background: var(--company-amber);
}

.company-overview__status--closed {
  color: var(--company-red);
  background: rgb(239 68 68 / 14%);
}

.company-overview__status--closed > span {
  background: var(--company-red);
}

.company-overview__rename-form {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.company-self-service--overview .company-overview__rename-form input {
  width: 520px;
  max-width: 100%;
  min-height: 0;
  padding: 6px 12px;
  border: 1px solid var(--company-blue-500);
  border-radius: 8px;
  color: var(--company-ink);
  background: var(--company-card);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 15%);
  font-family: var(--fundaro-font-sans);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.company-self-service--overview .company-overview__rename-form input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 12%);
}

.company-overview__rename-error {
  width: 100%;
  margin: 0;
  color: var(--company-red);
  font-size: 0.875rem;
}

.company-self-service--overview .company-self-service__button {
  min-height: 0;
  padding: 9px 16px;
  border: 1px solid var(--company-border-strong);
  border-radius: var(--fundaro-radius-pill);
  color: var(--company-text) !important;
  background: var(--company-card);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  transition:
    color 120ms cubic-bezier(0.2, 0, 0, 1),
    border-color 120ms cubic-bezier(0.2, 0, 0, 1),
    background 120ms cubic-bezier(0.2, 0, 0, 1);
}

.company-self-service--overview .company-self-service__button:hover {
  border-color: var(--company-disabled);
  color: var(--company-ink) !important;
  background: var(--company-card);
}

.company-self-service--overview .company-self-service__button--primary {
  padding: 10px 20px;
  border-color: transparent;
  color: #ffffff !important;
  background: var(--company-blue-600);
}

.company-self-service--overview .company-self-service__button--primary:hover {
  background: var(--company-blue-500);
}

.company-self-service--overview .company-self-service__button--primary:active {
  background: var(--company-blue-800);
}

.company-self-service--overview .company-self-service__button--compact {
  padding: 7px 14px;
}

.company-self-service--overview .company-self-service__button--small {
  padding: 6px 14px;
  font-size: 0.75rem;
}

.company-self-service--overview .company-self-service__button--ghost {
  border-color: transparent;
  background: transparent;
}

.company-self-service--overview .company-self-service__button--ghost:hover {
  background: var(--company-card-subtle);
}

.company-overview__button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.company-self-service--overview .company-self-service__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.company-self-service--overview .company-self-service__stats article {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--company-border);
  border-radius: 12px;
  background: var(--company-card);
}

.company-self-service--overview .company-self-service__stats span {
  color: var(--company-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.company-self-service--overview .company-self-service__stats strong {
  margin-top: 6px;
  color: var(--company-ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.company-usage {
  overflow: hidden;
  border: 1px solid var(--company-border);
  border-radius: 24px;
  background: var(--company-card);
  box-shadow:
    0 2px 4px -2px rgb(15 23 42 / 6%),
    0 4px 8px -2px rgb(15 23 42 / 10%);
}

.company-usage__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--company-border);
  background: var(--company-blue-tint);
  flex-wrap: wrap;
}

.company-usage__header > div:first-child {
  min-width: 0;
  flex: 1 1 320px;
}

.company-usage__header h2 {
  margin: 8px 0 0;
  color: var(--company-ink);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.company-usage__header p:not(.company-self-service__eyebrow) {
  margin: 6px 0 0;
  color: var(--company-text);
  font-size: 0.875rem;
}

.company-usage__billing-period {
  flex: 0 0 auto;
  text-align: right;
}

.company-usage__billing-period span {
  display: block;
  color: var(--company-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-usage__billing-period strong {
  display: block;
  margin-top: 4px;
  color: var(--company-text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.company-usage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
}

.company-usage__column {
  display: flex;
  min-width: 0;
  padding: 28px 32px;
  flex-direction: column;
  gap: 20px;
}

.company-usage__column:first-child {
  border-right: 1px solid var(--company-border);
}

.company-usage__column-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.company-usage__column-heading > div {
  min-width: 0;
}

.company-usage__column h3 {
  margin: 0;
  color: var(--company-ink);
  font-size: 1.125rem;
  font-weight: 500;
}

.company-usage__column-heading p {
  margin: 4px 0 0;
  color: var(--company-muted);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.company-usage__chip {
  flex: 0 0 auto;
  padding: 4px 12px;
  border-radius: var(--fundaro-radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.company-usage__chip--brand {
  color: var(--company-blue-700);
  background: var(--company-blue-50);
}

.company-usage__chip--warning {
  color: var(--company-amber);
  background: rgb(245 158 11 / 14%);
}

.company-usage__chip--danger {
  color: var(--company-red);
  background: rgb(239 68 68 / 14%);
}

.company-usage__total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.company-usage__total strong {
  color: var(--company-ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 3rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.company-usage__total span {
  color: var(--company-muted);
  font-size: 1.125rem;
}

.company-usage__progress {
  display: flex;
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--fundaro-radius-pill);
  background: var(--company-card-subtle);
}

.company-usage__segment {
  display: block;
  height: 100%;
}

.company-usage__segment--included {
  background: var(--company-blue-600);
}

.company-usage__segment--purchased {
  background: var(--company-blue-300);
}

.company-usage__legend {
  display: flex;
  margin-top: 12px;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.company-usage__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--company-text);
  font-size: 0.75rem;
}

.company-usage__legend > .company-usage__legend-free {
  color: var(--company-muted);
}

.company-usage__legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.company-usage__legend-dot--included {
  background: var(--company-blue-600);
}

.company-usage__legend-dot--purchased {
  background: var(--company-blue-300);
}

.company-usage__legend-dot--free {
  background: var(--company-border);
}

.company-usage__breakdown {
  overflow: hidden;
  border: 1px solid var(--company-border);
  border-radius: 12px;
}

.company-usage__breakdown-header,
.company-usage__breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.company-usage__breakdown-header {
  padding: 9px 16px;
  border-bottom: 1px solid var(--company-border);
  background: var(--company-card-subtle);
}

.company-usage__breakdown-header span {
  color: var(--company-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-usage__breakdown-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--company-border);
}

.company-usage__breakdown-row:last-child {
  border: 0;
}

.company-usage__breakdown-row > span {
  min-width: 0;
  color: var(--company-ink);
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.company-usage__breakdown-row strong {
  flex: 0 0 auto;
  color: var(--company-text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.company-usage__breakdown-empty {
  margin: 0;
  padding: 18px 16px;
  color: var(--company-muted);
  font-size: 0.875rem;
  text-align: center;
}

.company-usage__metrics {
  display: flex;
  gap: 12px;
}

.company-usage__metrics article {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--company-border);
  border-radius: 12px;
  flex: 1;
}

.company-usage__metrics span {
  display: block;
  color: var(--company-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-usage__metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--company-ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1.5rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.company-usage__action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.company-usage__action button {
  padding: 10px 20px;
  border: 0;
  border-radius: var(--fundaro-radius-pill);
  color: var(--company-disabled);
  background: var(--company-border);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: not-allowed;
}

.company-usage__action span {
  color: var(--company-muted);
  font-size: 0.75rem;
}

.company-self-service--overview .company-self-service__section {
  margin: 0;
}

.company-self-service--overview .company-self-service__panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--company-border);
  border-radius: 16px;
  background: var(--company-card);
}

.company-self-service--overview .company-self-service__panel-heading {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--company-border);
}

.company-self-service--overview .company-self-service__panel-heading h2 {
  margin: 0;
  color: var(--company-ink);
  font-size: 1.125rem;
  font-weight: 500;
}

.company-self-service--overview .company-self-service__panel-heading > span {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--company-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.company-self-service--overview .company-self-service__badge {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  padding: 4px 11px;
  border: 0;
  border-radius: var(--fundaro-radius-pill);
  color: var(--company-text);
  background: var(--company-card-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.company-self-service--overview .company-self-service__badge--active {
  color: var(--company-green);
  background: rgb(16 185 129 / 12%);
}

.company-self-service--overview .company-self-service__badge--suspended,
.company-self-service--overview .company-self-service__badge--removed {
  color: var(--company-red);
  background: rgb(239 68 68 / 12%);
}

.company-self-service--overview .company-self-service__badge--invited {
  color: var(--company-amber);
  background: rgb(245 158 11 / 14%);
}

.company-overview__team {
  overflow: hidden;
  border-radius: 16px !important;
}

.company-overview__team-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.company-overview__team-header > div:first-child {
  min-width: 0;
  flex: 1 1 280px;
}

.company-overview__team-header h2 {
  margin: 0;
  color: var(--company-ink);
  font-size: 1.125rem;
  font-weight: 500;
}

.company-overview__team-header p {
  margin: 4px 0 0;
  color: var(--company-muted);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.company-overview__team-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 320px;
  flex-wrap: wrap;
}

.company-overview__search {
  display: flex;
  min-width: 0;
  max-width: 260px;
  padding: 8px 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--company-border-strong);
  border-radius: 8px;
  background: var(--company-card);
  flex: 1 1 180px;
}

.company-overview__search:focus-within {
  border-color: var(--company-blue-500);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 15%);
}

.company-overview__search-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--company-disabled);
}

.company-self-service--overview .company-overview__search input {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--company-ink);
  background: transparent;
  box-shadow: none;
  font-size: 0.875rem;
}

.company-self-service--overview .company-overview__search input:focus-visible {
  border: 0;
  box-shadow: none;
}

.company-self-service--overview .company-overview__search input::placeholder {
  color: var(--company-disabled);
}

.company-overview__ownership-transfer {
  margin: 0 24px 20px;
  padding: 10px 14px;
  border: 1px solid var(--company-border);
  border-radius: 12px;
  background: var(--company-card-subtle);
}

.company-self-service--overview .company-self-service__impact summary {
  color: var(--company-blue-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.company-self-service--overview .company-self-service__impact p {
  color: var(--company-muted);
  font-size: 0.75rem;
}

.company-self-service--overview .company-self-service__inline-form {
  color: var(--company-text);
}

.company-self-service--overview .company-self-service__inline-form label {
  color: var(--company-text);
}

.company-self-service--overview .company-self-service__inline-form select {
  border-color: var(--company-border-strong);
  color: var(--company-ink);
  background: var(--company-card);
}

.company-self-service--overview .company-self-service__team {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-x: auto;
  contain: inline-size paint;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.company-self-service--overview .company-self-service__team table {
  display: table;
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.company-self-service--overview .company-self-service__team thead {
  display: table-header-group;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.company-self-service--overview .company-self-service__team tbody {
  display: table-row-group;
}

.company-self-service--overview .company-self-service__team tr {
  display: table-row;
  width: auto;
  padding: 0;
  border: 0;
}

.company-self-service--overview .company-self-service__team th,
.company-self-service--overview .company-self-service__team td {
  display: table-cell;
  width: auto;
  padding: 11px 16px;
  border-bottom: 1px solid var(--company-border);
  color: var(--company-text);
  text-align: left;
  vertical-align: middle;
}

.company-self-service--overview .company-self-service__team th {
  color: var(--company-muted);
  background: var(--company-card-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-self-service--overview .company-self-service__team th:first-child,
.company-self-service--overview .company-self-service__team td:first-child {
  padding-left: 24px;
}

.company-self-service--overview .company-self-service__team th:last-child,
.company-self-service--overview .company-self-service__team td:last-child {
  padding-right: 24px;
  text-align: right;
}

.company-self-service--overview .company-self-service__team td::before {
  display: none;
  content: none;
}

.company-self-service--overview .company-self-service__team td strong {
  color: var(--company-ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.company-self-service--overview .company-self-service__team time {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.company-self-service--overview .company-self-service__row-actions {
  position: relative;
  width: auto;
}

.company-self-service--overview .company-self-service__row-actions summary {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  color: var(--company-blue-600);
  font-size: 0.875rem;
  font-weight: 500;
  list-style: none;
}

.company-self-service--overview .company-self-service__row-actions summary::-webkit-details-marker {
  display: none;
}

.company-self-service--overview .company-self-service__row-actions > div {
  display: grid;
  min-width: 250px;
  gap: 8px;
  padding: 10px 0 4px;
  text-align: left;
}

.company-self-service--overview .company-self-service__row-actions:not([open]) > div {
  display: none;
}

.company-self-service--overview .company-self-service__row-actions p {
  color: var(--company-muted);
}

.company-overview__team-empty {
  padding: 24px !important;
  color: var(--company-muted) !important;
  text-align: center !important;
}

.company-self-service--overview .company-self-service__connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-self-service--overview .company-self-service__connection-grid article {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-right: 1px solid var(--company-border);
  border-bottom: 1px solid var(--company-border);
}

.company-self-service--overview .company-self-service__connection-grid article:nth-child(2n) {
  border-right: 0;
}

.company-self-service--overview .company-self-service__connection-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.company-self-service--overview .company-self-service__connection-grid strong {
  min-width: 0;
  color: var(--company-ink);
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.company-self-service--overview .company-self-service__connection-grid small {
  flex: 0 1 auto;
  margin: 0;
  color: var(--company-muted);
  font-size: 0.75rem;
  text-align: right;
}

.company-self-service--overview .company-self-service__connection-grid > .company-self-service__empty {
  grid-column: 1 / -1;
}

.company-self-service--overview .company-self-service__empty {
  color: var(--company-muted);
}

.company-overview__toast {
  position: fixed;
  z-index: 60;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--fundaro-radius-pill);
  color: #ffffff;
  background: #0f172a;
  box-shadow:
    0 8px 16px -4px rgb(15 23 42 / 8%),
    0 16px 32px -8px rgb(15 23 42 / 14%);
  font-size: 0.875rem;
  transform: translateX(-50%);
}

.company-overview__toast-icon {
  width: 16px;
  height: 16px;
  color: #10b981;
}

@container company-overview (max-width: 760px) {
  .company-overview__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .company-self-service--overview .company-self-service__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-usage__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-usage__column:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--company-border);
  }

  .company-self-service--overview .company-self-service__connection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-self-service--overview .company-self-service__connection-grid article,
  .company-self-service--overview .company-self-service__connection-grid article:nth-child(2n),
  .company-self-service--overview .company-self-service__connection-grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--company-border);
  }

  .company-self-service--overview .company-self-service__connection-grid article:last-of-type {
    border-bottom: 0;
  }
}

@container company-overview (max-width: 540px) {
  .company-self-service--overview {
    gap: 16px;
  }

  .company-self-service--overview .company-self-service__header h1 {
    font-size: 1.875rem;
  }

  .company-overview__title-row {
    align-items: flex-start;
  }

  .company-overview__title-display {
    align-items: flex-start;
  }

  .company-overview__rename-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .company-self-service--overview .company-overview__rename-form input,
  .company-overview__rename-error {
    grid-column: 1 / -1;
    width: 100%;
  }

  .company-self-service--overview .company-self-service__stats {
    gap: 12px;
  }

  .company-self-service--overview .company-self-service__stats article {
    padding: 14px 16px;
  }

  .company-usage {
    border-radius: 16px;
  }

  .company-usage__header,
  .company-usage__column {
    padding: 22px 20px;
  }

  .company-usage__billing-period {
    text-align: left;
  }

  .company-usage__column-heading {
    flex-direction: column;
  }

  .company-usage__total {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .company-usage__metrics {
    flex-wrap: wrap;
  }

  .company-usage__metrics article {
    flex-basis: calc(50% - 6px);
  }

  .company-self-service--overview .company-self-service__panel-heading,
  .company-overview__team-header {
    padding-inline: 20px;
  }

  .company-overview__team-controls,
  .company-overview__search {
    width: 100%;
    max-width: none;
  }

  .company-overview__team-controls .company-self-service__button {
    flex: 1 1 auto;
  }

  .company-overview__ownership-transfer {
    margin-inline: 20px;
  }

  .company-self-service--overview .company-self-service__connection-grid article {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .company-self-service--overview .company-self-service__connection-grid small {
    text-align: left;
  }
}

@container company-overview (max-width: 380px) {
  .company-self-service--overview .company-self-service__stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-self-service--overview *,
  .company-self-service--overview *::before,
  .company-self-service--overview *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Responsive fund document library */
@keyframes document-progress-stripe {
  to {
    background-position: 20px 0;
  }
}

@keyframes document-status-spin {
  to {
    transform: rotate(360deg);
  }
}

.fund-documents {
  --documents-blue-50: #eff6ff;
  --documents-blue-500: #3b82f6;
  --documents-blue-600: #2563eb;
  --documents-blue-700: #1d4ed8;
  --documents-slate-50: #f8fafc;
  --documents-slate-100: #f1f5f9;
  --documents-slate-200: #e2e8f0;
  --documents-slate-300: #cbd5e1;
  --documents-slate-400: #94a3b8;
  --documents-slate-500: #64748b;
  --documents-slate-600: #475569;
  --documents-slate-700: #334155;
  --documents-slate-900: #0f172a;
  position: relative;
  display: grid;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin-inline: auto;
  padding-bottom: 32px;
  gap: 20px;
  color: var(--documents-slate-900);
}

.fund-documents [hidden] {
  display: none !important;
}

.fund-documents__header {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.fund-documents__heading {
  min-width: 0;
}

.fund-documents__eyebrow {
  margin: 0 0 7px;
  color: var(--documents-slate-500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fund-documents__heading h1 {
  margin: 0;
  color: var(--documents-slate-900);
  font-size: clamp(1.875rem, 3vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.fund-documents__heading > p:last-child {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--documents-slate-600);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.fund-documents__overview-link {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--documents-slate-200);
  border-radius: 10px;
  color: var(--documents-slate-600);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.fund-documents__overview-link:hover {
  border-color: var(--documents-slate-400);
  color: var(--documents-slate-900);
}

.document-upload-overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 3px dashed var(--documents-blue-500);
  background: rgb(37 99 235 / 10%);
  pointer-events: none;
}

.document-upload-overlay__card {
  display: flex;
  max-width: 440px;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgb(15 23 42 / 22%);
}

.document-upload-overlay__icon,
.document-upload-zone__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--documents-blue-600);
  background: var(--documents-blue-50);
}

.document-upload-overlay__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.document-upload-overlay__card strong,
.document-upload-overlay__card small {
  display: block;
}

.document-upload-overlay__card strong {
  color: var(--documents-slate-900);
  font-size: 0.9375rem;
  font-weight: 600;
}

.document-upload-overlay__card small {
  margin-top: 3px;
  color: var(--documents-slate-600);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.document-upload-zone {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 2px dashed var(--documents-slate-300);
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 180ms cubic-bezier(0.2, 0, 0, 1),
    background 180ms cubic-bezier(0.2, 0, 0, 1);
}

.document-upload-zone[data-dragging="true"] {
  border-color: var(--documents-blue-500);
  background: var(--documents-blue-50);
}

.document-upload-zone--disabled {
  opacity: 0.62;
}

.document-upload-zone__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.document-upload-zone__copy {
  min-width: 0;
  flex: 1 1 260px;
}

.document-upload-zone__copy h2 {
  margin: 0;
  color: var(--documents-slate-900);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.document-upload-zone__copy p {
  margin: 3px 0 0;
  color: var(--documents-slate-600);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.document-upload-zone__button {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--documents-blue-600);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background 120ms cubic-bezier(0.2, 0, 0, 1);
}

.document-upload-zone__button:hover {
  background: var(--documents-blue-500);
}

.document-upload-zone__button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.document-upload-zone__messages {
  display: grid;
  width: 100%;
  gap: 8px;
}

.document-upload-zone__messages:empty {
  display: none;
}

.document-upload-zone__error {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 0.8125rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.document-upload-relationship {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  color: #5b21b6;
  background: #f5f3ff;
  font-size: 0.8125rem;
}

.document-upload-relationship span {
  color: #6d28d9;
  font-size: 0.75rem;
  line-height: 1.45;
}

.document-library {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.document-library__filters,
.document-library__results {
  min-width: 0;
  border: 1px solid var(--documents-slate-200);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 7%);
}

.document-library__filters {
  padding: 18px;
}

.document-library__filter-form {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.document-library__search {
  display: flex;
  height: 44px;
  min-width: 230px;
  flex: 1 1 320px;
  align-items: center;
  gap: 10px;
  padding-inline: 14px;
  border: 1px solid var(--documents-slate-300);
  border-radius: 10px;
  color: var(--documents-slate-400);
  background: #fff;
}

.document-library__search:focus-within {
  border-color: var(--documents-blue-500);
  box-shadow: 0 0 0 1px var(--documents-blue-500);
}

.document-library__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--documents-slate-900);
  background: transparent;
  font-size: 0.875rem;
}

.document-library__search input::placeholder {
  color: var(--documents-slate-400);
}

.document-library__select {
  height: 44px;
  min-width: 150px;
  max-width: 100%;
  flex: 0 1 180px;
  padding-inline: 11px 32px;
  border: 1px solid var(--documents-slate-300);
  border-radius: 10px;
  color: var(--documents-slate-600);
  background-color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

.document-library__tag-filters {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.document-library__tag-label,
.document-library__no-tags {
  color: var(--documents-slate-500);
  font-size: 0.75rem;
}

.document-library__tag-label {
  margin-right: 2px;
}

.document-library__tag-filter {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--documents-slate-600);
  background: var(--documents-slate-100);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.document-library__tag-filter:hover {
  border-color: var(--documents-blue-500);
  color: var(--documents-blue-700);
  background: var(--documents-blue-50);
}

.document-library__tag-filter--active,
.document-library__tag-filter--active:hover {
  border-color: var(--documents-blue-600);
  color: #fff;
  background: var(--documents-blue-600);
}

.document-library__tag-count {
  color: var(--documents-slate-500);
  font-size: 0.75rem;
}

.document-library__tag-filter--active .document-library__tag-count {
  color: rgb(255 255 255 / 76%);
}

.document-library__reset {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--documents-blue-700);
  font-size: 0.8125rem;
  font-weight: 500;
}

.document-library__reset:hover {
  color: var(--documents-blue-700);
  background: var(--documents-blue-50);
}

.document-library__results {
  overflow: hidden;
}

.document-library__toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
}

.document-library__toolbar h2 {
  margin: 0;
  color: var(--documents-slate-900);
  font-size: 1rem;
  font-weight: 600;
}

.document-library__toolbar p {
  margin: 2px 0 0;
  color: var(--documents-slate-500);
  font-size: 0.8125rem;
}

.document-library__view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--documents-slate-100);
}

.document-library__view-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--documents-slate-500);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.document-library__view-button[aria-pressed="true"] {
  color: var(--documents-slate-900);
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 12%);
}

.document-library__table-view {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.document-library__table-view table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.fund-documents[data-document-layout="compact"] .document-library__table-view table {
  min-width: 700px;
}

.document-library__table-view th {
  padding: 10px 14px;
  border-block: 1px solid var(--documents-slate-200);
  color: var(--documents-slate-500);
  background: var(--documents-slate-50);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.document-library__table-view th:nth-child(1) {
  width: 35%;
}

.document-library__table-view th:nth-child(2) {
  width: 16%;
}

.document-library__table-view th:nth-child(3) {
  width: 17%;
}

.document-library__table-view th:nth-child(4) {
  width: 10%;
}

.document-library__table-view th:nth-child(5) {
  width: 22%;
}

.fund-documents[data-document-layout="compact"] .document-library__table-view th:nth-child(1) {
  width: 32%;
}

.fund-documents[data-document-layout="compact"] .document-library__table-view th:nth-child(2) {
  width: 15%;
}

.fund-documents[data-document-layout="compact"] .document-library__table-view th:nth-child(3) {
  width: 19%;
}

.fund-documents[data-document-layout="compact"] .document-library__table-view th:nth-child(4) {
  width: 12%;
}

.fund-documents[data-document-layout="compact"] .document-library__table-view th:nth-child(5) {
  width: 22%;
}

.document-library__table-view td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--documents-slate-100);
  color: var(--documents-slate-600);
  font-size: 0.8125rem;
  line-height: 1.45;
  vertical-align: top;
}

.document-library__table-view tbody:last-child tr:last-child td {
  border-bottom: 0;
}

.document-library__table-view tr:hover td {
  background: rgb(248 250 252 / 70%);
}

.document-library__row--blocked td {
  color: var(--documents-slate-500);
  background: var(--documents-slate-50);
}

.document-library__identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}

.document-library__identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.document-library__title-line {
  display: flex;
  max-width: 100%;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.document-library__document-title,
.document-card__title {
  color: var(--documents-blue-700);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.document-library__document-title {
  min-width: 0;
  font-size: 0.875rem;
}

a.document-library__document-title:hover,
a.document-card__title:hover {
  color: var(--documents-blue-500);
}

.document-library__document-title--blocked,
.document-card__title--blocked {
  color: var(--documents-slate-500);
  text-decoration: line-through;
  pointer-events: none;
}

.document-library__metadata {
  margin: 0;
  color: var(--documents-slate-500);
  font-size: 0.75rem;
  line-height: 1.4;
}

.document-library__metadata span:first-child {
  color: var(--documents-blue-700);
  font-weight: 600;
}

.document-library__source {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--documents-slate-600);
  background: var(--documents-slate-100);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
}

.document-file-glyph {
  position: relative;
  display: inline-flex;
  width: 31px;
  height: 38px;
  flex: 0 0 31px;
  align-items: flex-start;
  justify-content: center;
}

.document-file-glyph svg {
  display: block;
}

.document-file-glyph--blocked {
  filter: grayscale(1);
  opacity: 0.55;
}

.document-file-glyph__page {
  position: relative;
  display: block;
  width: 29px;
  height: 37px;
  border: 1px solid var(--documents-slate-300);
  border-radius: 3px;
  background:
    linear-gradient(225deg, var(--documents-slate-200) 0 8px, transparent 8px) top right / 10px 10px no-repeat,
    #fff;
}

.document-file-glyph__label {
  position: absolute;
  top: 19px;
  left: -2px;
  display: flex;
  width: 25px;
  height: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: #fff;
  background: var(--document-file-color);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.document-status-glyph {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  align-self: center;
  justify-content: center;
  color: var(--documents-blue-600);
  font-size: 0.75rem;
  line-height: 1;
  cursor: help;
}

.document-status-glyph--ready {
  color: #16a34a;
}

.document-status-glyph--soft-error {
  color: #d97706;
}

.document-status-glyph--uploading {
  border-radius: 999px;
  color: #fff;
  background: var(--documents-blue-600);
  font-size: 0.6875rem;
  font-weight: 700;
}

.document-status-glyph__spinner {
  animation: document-status-spin 900ms linear infinite;
}

.document-processing {
  width: 100%;
  max-width: 340px;
}

.document-processing__progress {
  display: flex;
  width: 100%;
  max-width: 250px;
  align-items: center;
  gap: 8px;
}

.document-processing__track {
  height: 4px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--documents-slate-100);
}

.document-processing__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background-color: var(--documents-blue-500);
  background-image: linear-gradient(
    115deg,
    rgb(255 255 255 / 40%) 25%,
    transparent 25% 50%,
    rgb(255 255 255 / 40%) 50% 75%,
    transparent 75%
  );
  background-size: 20px 20px;
  animation: document-progress-stripe 900ms linear infinite;
  transition: width 700ms cubic-bezier(0.2, 0, 0, 1);
}

.document-processing__fill--uploading {
  background-color: var(--documents-slate-400);
}

.document-processing__fill--scanning {
  background-color: var(--documents-blue-600);
}

.document-processing__percentage {
  flex: 0 0 auto;
  color: var(--documents-slate-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.document-processing__stage {
  margin: 5px 0 0;
  color: var(--documents-slate-500);
  font-size: 0.71875rem;
  font-weight: 600;
  line-height: 1.4;
}

.document-processing__stage--scanning,
.document-processing__stage--processing {
  color: var(--documents-blue-700);
}

.document-processing__waiting,
.document-processing__virus-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.71875rem;
  font-weight: 600;
  line-height: 1.3;
}

.document-processing__waiting {
  border: 1px solid #fde68a;
  color: #92400e;
  background: #fffbeb;
  cursor: pointer;
}

.document-processing__waiting:hover {
  background: #fef3c7;
}

.document-processing__note {
  max-width: 320px;
  margin: 7px 0 0;
  padding: 9px 11px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  font-size: 0.75rem;
  line-height: 1.55;
}

.document-processing__virus-chip {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.document-processing__virus-explanation {
  max-width: 340px;
  margin: 6px 0 0;
  color: var(--documents-slate-500);
  font-size: 0.75rem;
  line-height: 1.5;
}

.document-library__tags {
  display: flex;
  min-width: 0;
  align-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.document-library__tags > span:not(.document-library__tags-empty) {
  display: inline-flex;
  min-height: 24px;
  max-width: 100%;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--documents-blue-700);
  background: var(--documents-blue-50);
  font-size: 0.75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.document-library__tags-empty {
  color: var(--documents-slate-400);
  font-size: 0.75rem;
}

.document-tag-manager {
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
}

.document-tag-manager__trigger {
  width: 36px;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 7px !important;
  border-radius: 8px !important;
}

.document-tag-manager__panel {
  position: relative;
  max-width: min(22rem, calc(100vw - 3rem));
}

.document-sharing {
  min-width: 0;
}

.document-sharing__internal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--documents-slate-500);
  font-size: 0.75rem;
}

.document-sharing__trigger {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.document-sharing__avatar {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.document-sharing__avatar + .document-sharing__avatar {
  margin-left: -4px;
}

.document-sharing__avatar--tone-0 {
  background: #0f172a;
}

.document-sharing__avatar--tone-1 {
  background: #2563eb;
}

.document-sharing__avatar--tone-2 {
  background: #64748b;
}

.document-sharing__avatar--tone-3 {
  background: #1e40af;
}

.document-sharing__avatar--tone-4 {
  background: #334155;
}

.document-sharing__avatar--tone-5 {
  background: #60a5fa;
}

.document-sharing__more {
  display: inline-flex;
  height: 26px;
  align-items: center;
  margin-left: 6px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--documents-slate-600);
  background: var(--documents-slate-100);
  font-size: 0.71875rem;
  font-weight: 600;
}

.document-sharing__expanded {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.document-sharing__partner {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  color: var(--documents-slate-600);
  font-size: 0.75rem;
}

.document-sharing__partner > span:last-child {
  overflow-wrap: anywhere;
}

.document-sharing__less {
  padding: 0;
  border: 0;
  color: var(--documents-blue-700);
  background: transparent;
  font-size: 0.75rem;
  cursor: pointer;
}

.document-library__date-cell {
  color: var(--documents-slate-600);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.document-actions {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.document-actions__button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--documents-slate-200);
  border-radius: 8px;
  color: var(--documents-slate-600);
  background: #fff;
  cursor: pointer;
}

.document-actions__button:hover {
  border-color: var(--documents-slate-400);
  color: var(--documents-slate-900);
  background: var(--documents-slate-50);
}

.document-actions__delete-form {
  display: inline;
}

.document-actions__button--delete {
  border-color: #fecaca;
  color: #dc2626;
}

.document-actions__button--delete:hover {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fef2f2;
}

.document-library__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.document-library__optimistic-cards {
  display: contents;
}

.document-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--documents-slate-200);
  border-radius: 14px;
  background: #fff;
}

.document-card--blocked {
  border-color: #fecaca;
  background: var(--documents-slate-50);
}

.document-card__header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
}

.document-card__type {
  min-width: 0;
  flex: 1 1 auto;
}

.document-card__type strong,
.document-card__type span {
  display: block;
}

.document-card__type strong,
.document-card__footer-label {
  color: var(--documents-slate-500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.document-card__type span {
  margin-top: 3px;
  color: var(--documents-slate-500);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.document-card__title {
  display: block;
  font-size: 0.9375rem;
}

.document-card__footer {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--documents-slate-100);
}

.document-card__sharing {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.document-card .document-actions {
  justify-content: flex-start;
  gap: 8px;
}

.document-card .document-actions__button {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 10px;
}

.document-card .document-actions__delete-form {
  margin-left: auto;
}

.document-card--blocked .document-actions__delete-form {
  margin-left: 0;
}

.document-card .document-tag-manager__trigger {
  width: 44px;
  min-width: 44px !important;
  min-height: 44px !important;
}

.document-library__empty {
  display: grid;
  justify-items: center;
  padding: 48px 20px;
  color: var(--documents-slate-400);
  text-align: center;
}

.document-library__empty strong {
  margin-top: 12px;
  color: var(--documents-slate-700);
  font-size: 0.875rem;
}

.document-library__empty p {
  max-width: 48ch;
  margin: 4px 0 0;
  color: var(--documents-slate-500);
  font-size: 0.8125rem;
}

.document-library__optimistic-row td {
  background: rgb(239 246 255 / 35%);
}

.fund-documents[data-document-layout="mobile"] {
  gap: 16px;
}

.fund-documents[data-document-layout="mobile"] .fund-documents__header {
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
}

.fund-documents[data-document-layout="mobile"] .fund-documents__overview-link {
  width: fit-content;
  min-height: 44px;
}

.fund-documents[data-document-layout="mobile"] .document-upload-zone {
  align-items: flex-start;
  padding: 14px;
}

.fund-documents[data-document-layout="mobile"] .document-upload-zone__button {
  width: 100%;
  min-height: 44px;
}

.fund-documents[data-document-layout="mobile"] .document-library__filters {
  padding: 14px;
}

.fund-documents[data-document-layout="mobile"] .document-library__filter-form {
  align-items: stretch;
  flex-direction: column;
}

.fund-documents[data-document-layout="mobile"] .document-library__search,
.fund-documents[data-document-layout="mobile"] .document-library__select {
  width: 100%;
  min-width: 0;
  flex: 0 0 44px;
}

.fund-documents[data-document-layout="mobile"] .document-library__toolbar {
  padding: 14px;
}

.fund-documents[data-document-layout="mobile"] .document-library__cards {
  grid-template-columns: minmax(0, 1fr);
  padding: 0 12px 12px;
}

.fund-documents[data-document-layout="mobile"] .document-card {
  min-height: 260px;
}

@media (prefers-reduced-motion: reduce) {
  .document-status-glyph__spinner,
  .document-processing__fill {
    animation: none;
  }

  .document-processing__fill {
    transition: none;
  }
}
html.marketing-page {
  scroll-behavior: smooth;
}

body.marketing-site {
  margin: 0;
  background: var(--fundaro-canvas);
  color: var(--fundaro-text);
  font-family: var(--fundaro-font-sans);
  font-size: 16px;
  line-height: 1.6;
}

body.marketing-site.overflow-hidden {
  overflow: hidden;
}

body.marketing-site *,
body.marketing-site *::before,
body.marketing-site *::after {
  box-sizing: border-box;
}

body.marketing-site :where(h1, h2, h3, h4, p, ul, ol, dl, dd) {
  margin-block: 0;
}

body.marketing-site :where(a, button, summary) {
  -webkit-tap-highlight-color: transparent;
}

body.marketing-site :where(a, button, summary):focus-visible {
  outline: 2px solid var(--fundaro-focus);
  outline-offset: 3px;
}

.marketing-visually-hidden {
  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;
}

.marketing-skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--fundaro-radius-control);
  color: #fff;
  background: var(--fundaro-brand-600);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-80px);
  transition: transform var(--fundaro-motion-default) var(--fundaro-easing);
}

.marketing-skip-link:focus {
  transform: translateY(0);
}

.marketing-container {
  width: min(100% - 96px, 1200px);
  min-width: 0;
  margin-inline: auto;
}

.marketing-section {
  padding-block: 96px;
  scroll-margin-top: 88px;
}

.marketing-site #top {
  position: sticky;
  top: 0;
  z-index: 30;
}

.marketing-header {
  border-bottom: 1px solid var(--fundaro-divider);
  background: var(--fundaro-canvas);
}

.marketing-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 24px;
}

.marketing-brand {
  display: inline-flex;
  min-height: 44px;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border-radius: var(--fundaro-radius-control);
}

.marketing-brand img {
  width: auto;
  height: 34px;
  max-width: 170px;
}

.marketing-beta {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-pill);
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface-raised);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.marketing-header__nav {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.marketing-header__nav a,
.marketing-nav-drawer__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--fundaro-radius-control);
  color: var(--fundaro-text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.marketing-header__nav a:hover,
.marketing-nav-drawer__links a:hover {
  color: var(--fundaro-ink);
  background: var(--fundaro-surface);
}

.marketing-header__desktop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketing-locale {
  display: flex;
  min-width: 96px;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--fundaro-radius-control);
  background: var(--fundaro-surface);
}

.marketing-locale__current,
.marketing-locale__link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex: 1;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--fundaro-text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.marketing-locale__current {
  color: var(--fundaro-ink);
  background: var(--fundaro-canvas);
  box-shadow: 0 1px 2px rgb(22 27 34 / 5%);
}

.marketing-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--fundaro-radius-control);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: color var(--fundaro-motion-fast) var(--fundaro-easing), background-color var(--fundaro-motion-fast) var(--fundaro-easing), border-color var(--fundaro-motion-fast) var(--fundaro-easing);
}

.marketing-button--primary {
  color: #fff;
  background: var(--fundaro-brand-600);
}

.marketing-button--primary:hover {
  background: var(--fundaro-brand-700);
}

.marketing-button--primary:active {
  background: var(--fundaro-brand-800);
}

.marketing-button--secondary {
  border-color: var(--fundaro-border);
  color: var(--fundaro-text);
  background: var(--fundaro-canvas);
}

.marketing-button--secondary:hover {
  color: var(--fundaro-ink);
  background: var(--fundaro-surface-raised);
}

.marketing-button--large {
  min-height: 48px;
  padding-inline: 20px;
}

.marketing-menu-button,
.marketing-nav-backdrop,
.marketing-nav-drawer {
  display: none;
}

.marketing-eyebrow,
.marketing-role-overline,
.marketing-record-label {
  color: var(--fundaro-brand-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.marketing-section h2 {
  max-width: 22ch;
  color: var(--fundaro-ink);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.marketing-section-heading {
  margin-bottom: 48px;
}

.marketing-section-heading .marketing-eyebrow,
.marketing-proof__intro .marketing-eyebrow,
.marketing-security__copy .marketing-eyebrow,
.marketing-faq__intro .marketing-eyebrow,
.marketing-final .marketing-eyebrow {
  margin-bottom: 12px;
}

.marketing-section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
  align-items: end;
  gap: 48px;
}

.marketing-section-heading--split > p,
.marketing-proof__intro > p,
.marketing-faq__intro > p {
  max-width: 60ch;
  color: var(--fundaro-text-secondary);
  font-size: 17px;
}

.marketing-hero {
  padding-top: 88px;
  background: var(--fundaro-canvas);
}

.marketing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(420px, 46fr);
  align-items: start;
  gap: 56px;
}

.marketing-hero__copy {
  min-width: 0;
  padding-top: 8px;
}

.marketing-hero h1 {
  max-width: 13ch;
  margin-top: 16px;
  color: var(--fundaro-ink);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.marketing-lead {
  max-width: 62ch;
  color: var(--fundaro-text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.marketing-hero__copy > .marketing-lead {
  margin-top: 24px;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.marketing-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding-inline: 4px;
  color: var(--fundaro-text);
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 4px;
}

.marketing-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  color: var(--fundaro-text-secondary);
  font-size: 13px;
  list-style: none;
}

body.marketing-site .marketing-trust-list {
  margin-top: 32px;
}

.marketing-trust-list li {
  position: relative;
  padding-left: 16px;
}

.marketing-trust-list li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fundaro-text-muted);
  content: "";
}

.marketing-catalogue-line {
  margin-top: 16px;
  color: var(--fundaro-text-muted);
  font-size: 13px;
}

.marketing-catalogue-line strong {
  color: var(--fundaro-ink);
}

.marketing-workspace,
.marketing-role-example,
.marketing-proof-record,
.marketing-security__grid {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-container);
  background: var(--fundaro-canvas);
  box-shadow: 0 1px 2px rgb(22 27 34 / 5%);
}

.marketing-workspace__topbar,
.marketing-role-example__toolbar,
.marketing-proof-record__head {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fundaro-divider);
  background: var(--fundaro-surface-raised);
  font-size: 12px;
}

.marketing-workspace__topbar div,
.marketing-proof-record__head div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.marketing-workspace__topbar span,
.marketing-role-example__toolbar,
.marketing-proof-record__head span {
  color: var(--fundaro-text-muted);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.marketing-workspace__topbar strong,
.marketing-proof-record__head strong {
  color: var(--fundaro-ink);
  font-size: 14px;
}

.marketing-evidence-path {
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-evidence-path li {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 18px 16px;
  border-bottom: 1px solid var(--fundaro-divider);
}

.marketing-evidence-path li:last-child {
  border-bottom: 0;
}

.marketing-evidence-path li > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.marketing-evidence-path strong,
.marketing-evidence-path p,
.marketing-evidence-path small {
  overflow-wrap: anywhere;
}

.marketing-evidence-path strong,
.marketing-evidence-path p {
  color: var(--fundaro-text);
  font-size: 13px;
  line-height: 1.5;
}

.marketing-evidence-path small {
  color: var(--fundaro-text-muted);
  font-size: 12px;
}

.marketing-path-index,
.marketing-question-number {
  color: var(--fundaro-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.marketing-path-label {
  color: var(--fundaro-text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marketing-evidence-path__ai .marketing-path-label,
.marketing-record-label--ai {
  color: var(--fundaro-ai);
}

.marketing-evidence-path__ai {
  background: var(--fundaro-ai-tint);
}

.marketing-evidence-path__evidence .marketing-path-label,
.marketing-evidence-path__evidence small {
  color: var(--fundaro-evidence);
}

.marketing-file-type,
.marketing-status,
.marketing-reviewer {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-pill);
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface-raised);
  font-size: 10px;
  font-weight: 700;
}

.marketing-status--evidence {
  border-color: #aadbd6;
  color: var(--fundaro-evidence);
  background: var(--fundaro-evidence-tint);
}

.marketing-reviewer {
  width: 32px;
  padding-inline: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--fundaro-text);
}

.marketing-audiences,
.marketing-security {
  background: var(--fundaro-surface);
}

.marketing-role-tabs {
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 auto 32px;
  padding: 4px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-pill);
  background: var(--fundaro-canvas);
}

.marketing-role-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--fundaro-radius-pill);
  color: var(--fundaro-text-secondary);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
}

.marketing-role-tabs button[aria-selected="true"] {
  border-color: var(--fundaro-brand-600);
  color: var(--fundaro-brand-700);
  background: var(--fundaro-brand-50);
}

.marketing-role-panel {
  scroll-margin-top: 168px;
}

.marketing-role-panel + .marketing-role-panel {
  margin-top: 24px;
}

.marketing-role-panel__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  gap: 48px;
  padding: 40px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-container);
  background: var(--fundaro-canvas);
  box-shadow: 0 1px 2px rgb(22 27 34 / 5%);
}

.marketing-role-panel__copy,
.marketing-role-panel__copy h3 {
  min-width: 0;
}

.marketing-role-panel__copy h3 {
  max-width: 24ch;
  margin-top: 8px;
  color: var(--fundaro-ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.marketing-benefit-list {
  display: grid;
  gap: 10px;
  padding: 0;
  color: var(--fundaro-text-secondary);
  font-size: 15px;
  list-style: none;
}

.marketing-role-panel__copy .marketing-benefit-list {
  margin-top: 32px;
}

.marketing-role-panel__copy > .marketing-button {
  margin-top: 32px;
}

.marketing-benefit-list li {
  position: relative;
  padding-left: 24px;
  overflow-wrap: anywhere;
}

.marketing-benefit-list li::before {
  position: absolute;
  top: 0.5em;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--fundaro-brand-600);
  border-radius: 50%;
  content: "";
}

.marketing-role-example {
  align-self: center;
}

.marketing-role-example__toolbar {
  font-weight: 700;
}

.marketing-role-example__question {
  padding: 20px;
}

.marketing-role-example__question h4 {
  margin: 8px 0;
  color: var(--fundaro-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.marketing-role-example__question p,
.marketing-finding-row {
  color: var(--fundaro-text-secondary);
  font-size: 13px;
}

.marketing-source-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 8px minmax(0, 1fr) minmax(0, auto);
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--fundaro-divider);
  color: var(--fundaro-evidence);
  font-size: 12px;
}

.marketing-source-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.marketing-source-row span:first-child,
.marketing-citation-link > span:first-child {
  width: 7px;
  height: 7px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--fundaro-evidence);
}

.marketing-finding-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #f0dfa3;
  color: var(--fundaro-warning);
  background: var(--fundaro-warning-tint);
}

.marketing-finding-row div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.marketing-finding-row strong,
.marketing-finding-row > span {
  overflow-wrap: anywhere;
}

.marketing-proof__grid {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: 64px;
}

.marketing-proof__intro h2,
.marketing-security__copy h2,
.marketing-faq__intro h2 {
  margin-bottom: 20px;
}

.marketing-catalogue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-control);
  background: var(--fundaro-surface-raised);
}

.marketing-catalogue > strong {
  grid-row: span 2;
  color: var(--fundaro-ink);
  font-size: 32px;
  line-height: 1.1;
}

.marketing-catalogue span {
  color: var(--fundaro-text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.marketing-catalogue small {
  color: var(--fundaro-text-muted);
  font-size: 11px;
}

.marketing-proof-record__head > div {
  gap: 2px;
}

.marketing-proof-record__head > span {
  padding: 4px 8px;
  border-radius: var(--fundaro-radius-pill);
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-surface);
}

.marketing-proof-record__section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--fundaro-divider);
}

.marketing-proof-record__section h3 {
  margin-top: 8px;
  color: var(--fundaro-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.marketing-proof-record__section p,
.marketing-proof-record__finding p {
  margin-top: 8px;
  color: var(--fundaro-text-secondary);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.marketing-citation-link {
  display: flex;
  min-height: 44px;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--fundaro-evidence);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.marketing-proof-record__finding {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--fundaro-warning-tint);
}

.marketing-proof-record__finding > span {
  max-width: 180px;
  padding: 5px 10px;
  border: 1px solid #ead47e;
  border-radius: var(--fundaro-radius-pill);
  color: var(--fundaro-warning);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: center;
}

.marketing-workflow {
  border-block: 1px solid var(--fundaro-divider);
  background: var(--fundaro-surface-raised);
}

.marketing-workflow__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-workflow__steps li {
  position: relative;
  min-width: 0;
  padding-top: 44px;
}

.marketing-workflow__steps li:not(:last-child)::after {
  position: absolute;
  top: 15px;
  left: 31px;
  width: calc(100% + 9px);
  height: 1px;
  background: var(--fundaro-border);
  content: "";
}

.marketing-workflow__number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fundaro-brand-400);
  border-radius: 50%;
  color: var(--fundaro-brand-700);
  background: var(--fundaro-canvas);
  font-size: 11px;
  font-weight: 700;
}

.marketing-workflow__steps strong {
  display: block;
  color: var(--fundaro-ink);
  font-size: 15px;
}

.marketing-workflow__steps p {
  margin-top: 8px;
  color: var(--fundaro-text-secondary);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.marketing-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid var(--fundaro-border);
  border-radius: var(--fundaro-radius-control);
  color: var(--fundaro-text-secondary);
  background: var(--fundaro-canvas);
  font-size: 13px;
}

.marketing-principles__ai {
  color: var(--fundaro-ai);
  font-weight: 650;
}

.marketing-principles strong {
  color: var(--fundaro-ink);
}

.marketing-security__grid {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr);
  align-items: stretch;
  padding: 0;
}

.marketing-location {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 32px;
  border-right: 1px solid var(--fundaro-divider);
  background: var(--fundaro-brand-50);
  isolation: isolate;
  overflow: hidden;
}

.marketing-location::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, rgb(240 244 255 / 38%), rgb(216 226 255 / 58%));
  content: "";
}

.marketing-location__map {
  position: absolute;
  z-index: -2;
  inset: -80px -4px -28px;
  width: calc(100% + 8px);
  height: calc(100% + 108px);
  border: 0;
  filter: saturate(0.65) sepia(0.08) hue-rotate(178deg);
  opacity: 0.5;
  pointer-events: none;
}

.marketing-location .marketing-location__marker {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 5px rgb(22 27 34 / 16%));
}

.marketing-location span {
  display: flex;
  flex-direction: column;
  color: var(--fundaro-text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.marketing-location strong {
  color: var(--fundaro-ink);
  font-size: 15px;
  letter-spacing: normal;
  white-space: nowrap;
}

.marketing-location__attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 1;
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--fundaro-text-secondary);
  background: rgb(255 255 255 / 78%);
  font-size: 9px;
  line-height: 1.2;
  text-decoration: none;
}

.marketing-location__attribution:hover {
  color: var(--fundaro-ink);
  text-decoration: underline;
}

.marketing-security__copy {
  min-width: 0;
  padding: 48px;
}

.marketing-control-list {
  display: grid;
  gap: 0;
  margin-top: 32px;
}

.marketing-control-list div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--fundaro-divider);
}

.marketing-control-list dt {
  color: var(--fundaro-ink);
  font-size: 14px;
  font-weight: 650;
}

.marketing-control-list dd {
  color: var(--fundaro-text-secondary);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.marketing-faq__grid {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: 64px;
}

.marketing-faq__items {
  border-top: 1px solid var(--fundaro-border);
}

.marketing-faq details {
  border-bottom: 1px solid var(--fundaro-border);
}

.marketing-faq details[open] {
  background: var(--fundaro-surface-raised);
}

.marketing-faq summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  color: var(--fundaro-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.marketing-faq summary::-webkit-details-marker {
  display: none;
}

.marketing-faq summary > span:last-child {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.marketing-faq summary > span:last-child::before,
.marketing-faq summary > span:last-child::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  background: var(--fundaro-text-secondary);
  content: "";
}

.marketing-faq summary > span:last-child::after {
  transform: rotate(90deg);
  transition: transform var(--fundaro-motion-fast) var(--fundaro-easing);
}

.marketing-faq details[open] summary > span:last-child::after {
  transform: rotate(0);
}

.marketing-faq details > div {
  padding: 0 52px 20px 16px;
}

.marketing-faq details p {
  max-width: 70ch;
  color: var(--fundaro-text-secondary);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.marketing-final {
  padding-top: 0;
}

.marketing-final__panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--fundaro-brand-200);
  border-radius: var(--fundaro-radius-container);
  background: var(--fundaro-brand-50);
}

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

.marketing-final__actions > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.marketing-final__actions span {
  color: var(--fundaro-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.marketing-footer {
  padding-block: 56px 24px;
  border-top: 1px solid var(--fundaro-divider);
  background: var(--fundaro-surface-raised);
}

.marketing-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 40px;
}

.marketing-footer__brand p {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--fundaro-text-secondary);
  font-size: 14px;
}

.marketing-footer nav,
.marketing-footer__access {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.marketing-footer h2 {
  margin-bottom: 8px;
  color: var(--fundaro-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.marketing-footer nav a,
.marketing-footer__access > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--fundaro-text-secondary);
  font-size: 13px;
  font-weight: 550;
  text-underline-offset: 3px;
}

.marketing-footer__access .marketing-locale {
  margin-top: 8px;
}

.marketing-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--fundaro-divider);
  color: var(--fundaro-text-muted);
  font-size: 12px;
}

.marketing-footer__bottom p {
  max-width: 58ch;
}

@media (max-width: 1199px) {
  .marketing-header__inner {
    gap: 12px;
  }

  .marketing-header__nav a {
    padding-inline: 7px;
    font-size: 12px;
  }

  .marketing-header__desktop-actions .marketing-button {
    padding-inline: 12px;
  }
}

@media (max-width: 1023px) {
  .marketing-container {
    width: calc(100% - 48px);
  }

  .marketing-section {
    padding-block: 72px;
  }

  .marketing-header__nav,
  .marketing-header__desktop-actions {
    display: none;
  }

  .marketing-menu-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--fundaro-border);
    border-radius: var(--fundaro-radius-control);
    color: var(--fundaro-text);
    background: var(--fundaro-canvas);
    cursor: pointer;
  }

  .marketing-menu-button > span {
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentcolor;
  }

  .marketing-menu-button--close {
    position: relative;
    margin-left: auto;
  }

  .marketing-menu-button--close > span {
    position: absolute;
    transform: rotate(45deg);
  }

  .marketing-menu-button--close > span::after {
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentcolor;
    content: "";
    transform: rotate(90deg);
  }

  .marketing-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    background: rgb(22 27 34 / 44%);
    opacity: 1;
    transition: opacity var(--fundaro-motion-default) var(--fundaro-easing);
  }

  .marketing-nav-backdrop.opacity-0 {
    opacity: 0;
  }

  .marketing-nav-drawer {
    position: fixed;
    inset-block: 0;
    left: 0;
    z-index: 50;
    display: flex;
    width: min(calc(100vw - 16px), 360px);
    height: 100dvh;
    flex-direction: column;
    border-right: 1px solid var(--fundaro-border);
    background: var(--fundaro-canvas);
    box-shadow: 0 1px 2px rgb(22 27 34 / 5%);
    transform: translateX(0);
    transition: transform var(--fundaro-motion-default) var(--fundaro-easing);
  }

  .marketing-nav-drawer.\-translate-x-full {
    transform: translateX(-100%);
  }

  .marketing-nav-drawer__head {
    display: flex;
    min-height: 72px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fundaro-divider);
  }

  .marketing-nav-drawer__head h2 {
    color: var(--fundaro-ink);
    font-size: 16px;
    font-weight: 650;
  }

  .marketing-nav-drawer__links {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding: 16px;
  }

  .marketing-nav-drawer__links a {
    width: 100%;
    padding-inline: 12px;
    font-size: 14px;
  }

  .marketing-nav-drawer__footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--fundaro-divider);
  }

  .marketing-nav-drawer__footer .marketing-locale {
    grid-column: 1 / -1;
  }

  .marketing-hero__grid,
  .marketing-proof__grid,
  .marketing-faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .marketing-hero__grid {
    gap: 48px;
  }

  .marketing-workspace {
    width: min(100%, 720px);
  }

  .marketing-section-heading--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .marketing-role-panel__grid {
    gap: 32px;
    padding: 32px;
  }

  .marketing-workflow__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .marketing-workflow__steps li:nth-child(3)::after {
    display: none;
  }

  .marketing-security__grid {
    grid-template-columns: minmax(200px, 4fr) minmax(0, 8fr);
  }

  .marketing-location {
    padding-inline: 24px;
  }

  .marketing-security__copy {
    padding: 40px 32px;
  }

  .marketing-control-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .marketing-final__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .marketing-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .marketing-container {
    width: calc(100% - 32px);
  }

  .marketing-section {
    padding-block: 56px;
  }

  .marketing-header__inner {
    min-height: 64px;
  }

  .marketing-brand img {
    height: 30px;
    max-width: 136px;
  }

  .marketing-header .marketing-beta {
    display: none;
  }

  .marketing-hero {
    padding-top: 56px;
  }

  .marketing-hero h1 {
    font-size: 2.5rem;
  }

  .marketing-lead,
  .marketing-section-heading--split > p,
  .marketing-proof__intro > p,
  .marketing-faq__intro > p {
    font-size: 16px;
  }

  .marketing-actions {
    align-items: stretch;
  }

  .marketing-actions .marketing-button,
  .marketing-actions .marketing-text-link {
    width: 100%;
    justify-content: center;
  }

  .marketing-trust-list {
    flex-direction: column;
  }

  .marketing-evidence-path li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .marketing-evidence-path li > :last-child:not(div) {
    grid-column: 2;
    justify-self: start;
  }

  .marketing-section-heading {
    margin-bottom: 32px;
  }

  .marketing-role-tabs button {
    padding-inline: 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .marketing-role-panel__grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }

  .marketing-role-panel__copy .marketing-button {
    width: 100%;
  }

  .marketing-source-row {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .marketing-source-row span:last-child {
    grid-column: 2;
  }

  .marketing-finding-row,
  .marketing-proof-record__finding {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .marketing-finding-row {
    flex-direction: column;
  }

  .marketing-finding-row > span,
  .marketing-proof-record__finding > span {
    align-self: flex-start;
  }

  .marketing-proof-record__head {
    align-items: flex-start;
  }

  .marketing-catalogue {
    padding: 16px;
  }

  .marketing-workflow__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-left: 0;
  }

  .marketing-workflow__steps li {
    min-height: 120px;
    padding: 2px 0 32px 48px;
  }

  .marketing-workflow__steps li:not(:last-child)::after,
  .marketing-workflow__steps li:nth-child(3)::after {
    top: 30px;
    left: 14px;
    display: block;
    width: 1px;
    height: calc(100% - 30px);
  }

  .marketing-workflow__steps li:last-child {
    min-height: 0;
    padding-bottom: 0;
  }

  .marketing-principles {
    flex-direction: column;
    margin-top: 40px;
  }

  .marketing-security__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-location {
    justify-content: flex-start;
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--fundaro-divider);
  }

  .marketing-security__copy {
    padding: 32px 24px;
  }

  .marketing-faq details > div {
    padding-right: 16px;
  }

  .marketing-final {
    padding-top: 0;
  }

  .marketing-final__panel {
    padding: 32px 20px;
  }

  .marketing-final__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .marketing-footer nav,
  .marketing-footer__access {
    padding-top: 20px;
    border-top: 1px solid var(--fundaro-divider);
  }

  .marketing-footer__bottom {
    flex-direction: column;
    gap: 12px;
  }
}

html:lang(de) #overview h1 {
  max-inline-size: min(19ch, 100%);
}

@media (prefers-reduced-motion: reduce) {
  html.marketing-page {
    scroll-behavior: auto !important;
  }

  .marketing-site *,
  .marketing-site *::before,
  .marketing-site *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.process-navigation {
  position: relative;
}

/* Keep both responsive heights measurable without adding the inactive view to
   document flow, keyboard navigation, or the accessibility tree. */
.process-navigation__expanded[inert],
.process-navigation__compact[inert] {
  position: absolute;
  inset: 0 0 auto;
  visibility: hidden;
}

.process-navigation__expanded,
.process-navigation__compact {
  transition: opacity 120ms ease;
}

.process-navigation nav {
  scrollbar-width: thin;
}

@media (prefers-reduced-motion: reduce) {
  .process-navigation__expanded,
  .process-navigation__compact {
    transition: none;
  }
}
.process-system-card {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.process-system-card > * {
  position: relative;
  z-index: 2;
}

.process-system-card--running {
  --process-card-primary-rgb: 8, 123, 118;
  --process-card-secondary-rgb: 49, 87, 213;

  background: var(--fundaro-evidence-tint);
  border-color: #a9dbd8;
  box-shadow: none;
}

.process-system-card--aas {
  --process-card-primary-rgb: 102, 85, 166;
  --process-card-secondary-rgb: 111, 141, 232;
  background: var(--fundaro-ai-tint);
  border-color: #dcd5f0;
}

.process-system-card--running::before,
.process-system-card--running::after {
  display: none;
}

.process-system-activity {
  --process-accent-rgb: 8, 123, 118;
  --process-accent: var(--fundaro-evidence);

  align-items: center;
  background: var(--fundaro-canvas);
  border: 1px solid rgba(var(--process-accent-rgb), 0.28);
  border-radius: var(--fundaro-radius-container);
  color: var(--process-accent);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(7.5rem, 0.8fr) minmax(11rem, 1fr);
  margin-top: 1rem;
  min-height: 4.75rem;
  overflow: hidden;
  padding: 0.8rem 0.9rem;
}

.process-system-activity--aas {
  --process-accent-rgb: 102, 85, 166;
  --process-accent: var(--fundaro-ai);
}

.process-system-activity__label {
  color: var(--fundaro-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.process-system-activity__stage {
  align-items: center;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 3rem minmax(4.5rem, 1fr) 3rem;
  min-height: 3rem;
}

.process-system-activity__source,
.process-system-activity__target {
  background: var(--fundaro-surface);
  border: 1px solid rgba(var(--process-accent-rgb), 0.42);
  border-radius: 0.7rem;
  box-shadow: none;
  height: 2.8rem;
  overflow: hidden;
  position: relative;
}

.process-system-activity__source::after,
.process-system-activity__target::after {
  animation: process-status-read 2.4s ease-in-out infinite;
  background: linear-gradient(180deg, transparent, rgba(var(--process-accent-rgb), 0.58), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateY(-105%);
}

.process-system-activity__target::after {
  animation-delay: 0.45s;
}

.process-system-activity__source > span,
.process-system-activity__target > span {
  background: rgba(var(--process-accent-rgb), 0.82);
  border-radius: 9999px;
  height: 2px;
  left: 0.58rem;
  opacity: 0.8;
  position: absolute;
  right: 0.58rem;
}

.process-system-activity__source > span:nth-child(1),
.process-system-activity__target > span:nth-child(1) {
  top: 0.78rem;
}

.process-system-activity__source > span:nth-child(2),
.process-system-activity__target > span:nth-child(2) {
  right: 1rem;
  top: 1.35rem;
}

.process-system-activity__source > span:nth-child(3),
.process-system-activity__target > span:nth-child(3) {
  right: 1.45rem;
  top: 1.92rem;
}

.process-system-activity--dds .process-system-activity__source::before {
  border-color: rgba(var(--process-accent-rgb), 0.72) rgba(var(--process-accent-rgb), 0.72) transparent transparent;
  border-style: solid;
  border-width: 0.38rem;
  content: "";
  position: absolute;
  right: 0.34rem;
  top: 0.34rem;
}

.process-system-activity--aas .process-system-activity__target > span {
  animation: process-status-compose 1.8s ease-in-out infinite;
  transform-origin: left center;
}

.process-system-activity--aas .process-system-activity__target > span:nth-child(2) {
  animation-delay: 0.18s;
}

.process-system-activity--aas .process-system-activity__target > span:nth-child(3) {
  animation-delay: 0.36s;
}

.process-system-activity__track {
  background: rgba(var(--process-accent-rgb), 0.16);
  border-radius: 9999px;
  box-shadow: none;
  height: 0.25rem;
  overflow: hidden;
  position: relative;
}

.process-system-activity__track > span {
  animation: process-status-flow 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  background: currentColor;
  border-radius: 9999px;
  box-shadow: none;
  height: 0.25rem;
  left: -0.8rem;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 0.8rem;
}

.process-system-activity__track > span:nth-child(2) {
  animation-delay: 0.42s;
}

.process-system-activity__track > span:nth-child(3) {
  animation-delay: 0.84s;
}

@keyframes process-status-flow {
  0% {
    left: -0.8rem;
    opacity: 0;
  }

  18%,
  78% {
    opacity: 1;
  }

  100% {
    left: calc(100% + 0.8rem);
    opacity: 0;
  }
}

@keyframes process-status-read {
  0% {
    opacity: 0;
    transform: translateY(-105%);
  }

  20%,
  72% {
    opacity: 0.86;
  }

  100% {
    opacity: 0;
    transform: translateY(105%);
  }
}

@keyframes process-status-compose {
  0%,
  100% {
    opacity: 0.42;
    transform: scaleX(0.38);
  }

  45%,
  70% {
    opacity: 0.92;
    transform: scaleX(1);
  }
}

@media (max-width: 640px) {
  .process-system-activity {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-system-card--running::before,
  .process-system-card--running::after,
  .process-system-activity__source::after,
  .process-system-activity__target::after,
  .process-system-activity__target > span,
  .process-system-activity__track > span {
    animation: none;
  }

  .process-system-card--running::after {
    display: none;
  }

  .process-system-activity__track {
    align-items: center;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    padding-inline: 0.25rem;
  }

  .process-system-activity__track > span {
    height: 0.22rem;
    left: auto;
    opacity: 0.82;
    position: static;
    width: 0.7rem;
  }
}
/* Product themes share one component tree. These semantic tokens adapt the
   existing Fundaro utility-based screens without affecting admin/settings. */
html[data-theme-area] {
  background: var(--fundaro-canvas);
  color-scheme: light;
}

html[data-product-theme="dark"] {
  background: var(--fundaro-dark-bg);
  color-scheme: dark;
}

body[data-theme-area] {
  --product-canvas: var(--fundaro-canvas);
  --product-surface: var(--fundaro-surface);
  --product-surface-raised: var(--fundaro-surface-raised);
  --product-border: var(--fundaro-border);
  --product-text: var(--fundaro-text);
  --product-text-strong: var(--fundaro-ink);
  --product-text-muted: var(--fundaro-text-secondary);
  --product-color-scheme: light;
  background: var(--product-canvas);
  color: var(--product-text);
}

body[data-product-theme="dark"] {
  --product-canvas: var(--fundaro-dark-bg);
  --product-surface: var(--fundaro-dark-overlay);
  --product-surface-raised: var(--fundaro-dark-surface);
  --product-border: var(--fundaro-dark-border);
  --product-text: var(--fundaro-dark-fg-secondary);
  --product-text-strong: var(--fundaro-dark-fg);
  --product-text-muted: var(--fundaro-dark-muted);
  --product-color-scheme: dark;
  --fundaro-focus: var(--fundaro-dark-accent-hover);
}

body[data-product-theme="dark"] :where(.bg-white, .bg-slate-50, .bg-slate-100) {
  background-color: var(--product-surface-raised);
}

body[data-product-theme="dark"] :where(.text-slate-950, .text-slate-900, .text-slate-800) {
  color: var(--product-text-strong);
}

body[data-product-theme="dark"] :where(.text-slate-700, .text-slate-600, .text-slate-500) {
  color: var(--product-text-muted);
}

body[data-product-theme="dark"] :where(.border-slate-100, .border-slate-200, .border-slate-300) {
  border-color: var(--product-border);
}

body[data-product-theme="dark"] .ring-slate-200 {
  --tw-ring-color: var(--product-border);
}

body[data-product-theme="dark"] .divide-slate-200 > :not(:last-child) {
  border-color: var(--product-border);
}

body[data-product-theme="dark"] :where(input, select, textarea, dialog) {
  border-color: var(--product-border);
  color: var(--product-text-strong);
  background-color: var(--product-surface-raised);
}

body[data-product-theme="dark"] :where(input, textarea)::placeholder {
  color: var(--product-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme-area] *,
  body[data-theme-area] *::before,
  body[data-theme-area] *::after {
    scroll-behavior: auto !important;
  }
}
/* src/exports/styles/trix.css */
.trix-content {
  border: 1px solid var(--rhino-border-color);
  border-radius: 0px 0px var(--rhino-border-radius) var(--rhino-border-radius);
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 200px;
  outline: transparent;
  overflow-wrap: break-word;
  word-break: break-word;
}
.trix-content[contenteditable=true] {
  white-space: pre-wrap;
}
.trix-content:is(:focus, :focus-within) {
  border-color: var(--rhino-button-active-border-color);
}
.trix-content :is(img, svg, figure) {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.trix-content :is(figure, p) {
  padding: 0;
  margin: 0;
}
.trix-content figure {
  position: relative;
}
.trix-content figcaption {
  line-break: anywhere;
  display: inline-block;
  white-space: normal;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.trix-content[contenteditable=true] figcaption {
  white-space: break-spaces;
}
.trix-content .rhino-upload-error {
  background-color: rgba(255, 0, 0, 0.3);
}
.trix-content:not([readonly]) .attachment--preview:is(:focus-within, :focus, .has-focus) :is(img) {
  outline: transparent;
  box-shadow: var(--rhino-focus-ring);
}
.trix-content:not([readonly]) .attachment:not(.attachment--preview):is(:focus-within, :focus, .has-focus) {
  outline: transparent;
  box-shadow: var(--rhino-focus-ring);
}
.rhino-attachment-editor::part(delete-button),
.rhino-attachment-editor::part(file-metadata) {
  display: none;
}
.trix-content:not([readonly]) figure:is(:focus-within, :focus, .has-focus) .rhino-attachment-editor::part(delete-button),
.trix-content:not([readonly]) figure:is(:focus-within, :focus, .has-focus) .rhino-attachment-editor::part(file-metadata) {
  display: flex;
}
.trix-content .placeholder {
  position: absolute;
  pointer-events: none;
  color: var(--rhino-placeholder-text-color);
  color: light-dark(var(--rhino-placeholder-text-color), var(--rhino-dark-placeholder-text-color));
  cursor: text;
  content: "";
}
.trix-content figure.attachment figcaption {
  position: relative;
}
.trix-content p.is-editor-empty:first-child::before,
.trix-content figure[data-trix-attachment].has-focus figcaption.is-empty::before {
  color: var(--rhino-placeholder-text-color);
  color: light-dark(var(--rhino-placeholder-text-color), var(--rhino-dark-placeholder-text-color));
  content: attr(data-placeholder);
  pointer-events: none;
}
.trix-content figure[data-trix-attachment]:not(.has-focus) figcaption.is-empty::before {
  content: attr(data-default-caption);
  pointer-events: none;
}
.trix-content ul {
  list-style: disc;
}
.trix-content ol {
  list-style-type: decimal;
}
.trix-content figure[data-trix-attachment].has-focus figcaption.is-empty::before {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0%);
}
.trix-content p.is-editor-empty:first-child::before {
  float: left;
  height: 0;
  pointer-events: none;
}
.trix-content {
  box-sizing: border-box;
}
.trix-content * {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
.trix-content h1 {
  font-size: 1.2em;
  line-height: 1.2;
}
.trix-content blockquote {
  border: 0 solid #ccc;
  border-inline-start-width: 0.3em;
  margin-inline-start: 0.3em;
  padding-inline-start: 0.6em;
}
.trix-content li {
  margin-inline-start: 1em;
}
.trix-content :not(pre) code {
  background-color: #eee;
  border-radius: 2px;
  padding: 2px;
  margin: 0 1px;
  border: 1px solid rgba(192, 192, 192, 0.5);
  display: inline;
}
.trix-content code,
.trix-content pre {
  box-decoration-break: clone;
}
.trix-content pre {
  display: block;
  width: 100%;
  font-family: monospace;
  padding: 0.5em;
  white-space: pre;
  overflow-x: auto;
  background-color: #eee;
  font-size: 0.9em;
}
.trix-content img {
  max-width: 100%;
  height: auto;
}
.trix-content .attachment {
  display: block;
  position: relative;
  max-width: 100%;
}
.trix-content .attachment figcaption a,
.trix-content .attachment figcaption a:hover {
  color: LinkText;
}
.trix-content .attachment figcaption a:visited,
.trix-content .attachment figcaption a:hover:visited {
  color: VisitedText;
}
.trix-content .attachment__caption {
  text-align: center;
  margin-top: 0.5em;
}
.trix-content .attachment__caption .attachment__name + .attachment__size::before {
  content: " \b7  ";
}
.trix-content .attachment--preview {
  width: 100%;
  text-align: center;
  margin: 0.6em 0;
}
.trix-content .attachment--preview .attachment__caption {
  color: #666;
  font-size: 0.9em;
  line-height: 1.2;
}
.trix-content .attachment.attachment--file {
  color: #333;
  line-height: 1;
  margin: 0 2px 2px 2px;
  padding: 0.4em 1em;
  border: 1px solid var(--rhino-border-color);
  border-radius: var(--rhino-border-radius);
}
.trix-content .attachment-gallery {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.trix-content figure.attachment {
  display: inline-block;
  position: relative;
  white-space: normal;
}
.trix-content .attachment-gallery > p {
  width: 0px;
  padding: 0;
  flex-basis: 0%;
  max-width: 0%;
  flex-shrink: 1;
  flex-grow: 0;
}
.trix-content .attachment-gallery .attachment {
  flex: 1 0 100%;
  padding: 0 0.5em;
  max-width: 100%;
  white-space: normal;
}
.trix-content .attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]) {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
  white-space: normal;
}
.trix-content .attachment-gallery > :is(.attachment, action-text-attachment):first-of-type:nth-last-of-type(1) ~ :is(.attachment, action-text-attachment),
.trix-content .attachment-gallery > :is(.attachment, action-text-attachment):first-of-type:nth-last-of-type(1) {
  padding: 0;
  flex-basis: 100%;
  max-width: 100%;
}
.attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]):first-of-type:nth-last-of-type(2),
.attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]):first-of-type:nth-last-of-type(2) ~ :is(.attachment--preview, action-text-attachment[previewable=true]),
.attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]):first-of-type:nth-last-of-type(4),
.attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]):first-of-type:nth-last-of-type(4) ~ :is(.attachment--preview, action-text-attachment[previewable=true]) {
  flex-basis: 50%;
  max-width: 50%;
}
.trix-content .attachment-gallery.attachment-gallery--2 action-text-attachment > .attachment,
.trix-content .attachment-gallery.attachment-gallery--4 action-text-attachment > .attachment,
.trix-content .attachment-gallery action-text-attachment > .attachment {
  max-width: 100%;
}
:host,
.trix-content {
  --rhino-focus-ring: 0px 0px 1px 1px var(--rhino-button-active-border-color);
  --rhino-border-radius: 4px;
  --rhino-danger-border-color: red;
  --rhino-danger-background-color: #ffdddd;
  --rhino-text-color: #374151;
  --rhino-dark-text-color: white;
  --rhino-border-color: #cecece;
  --rhino-placeholder-text-color: #cecece;
  --rhino-dark-placeholder-text-color: gray;
  --rhino-button-text-color: #889;
  --rhino-button-dark-text-color: #eee;
  --rhino-button-border-color: #cecece;
  --rhino-button-disabled-text-color: #d1d5db;
  --rhino-button-disabled-border-color: #d1d5db;
  --rhino-button-disabled-background-color: #d1d5db;
  --rhino-button-active-border-color: #005a9c;
  --rhino-button-active-background-color: rgb(226 239 255);
  --rhino-toolbar-text-color: hsl(219, 6%, 43%);
  --rhino-toolbar-icon-size: 1em;
  --rhino-dialog-border-color: hsl( var(--rhino-button-focus-background-color-hsl) / 50% );
  --rhino-button-focus-background-color: hsl( var(--rhino-button-focus-background-color-hsl) );
  --rhino-button-focus-background-color-hsl: 219 26% 95%;
  --rhino-fake-selection-color: rgb(220, 220, 220);
  display: block;
  color: var(--rhino-text-color);
  color: light-dark(var(--rhino-text-color), var(--rhino-dark-text-color));
}
@keyframes rhino-blink {
  49% {
    border-color: unset;
  }
  50% {
    border-color: Canvas;
  }
  99% {
    border-color: Canvas;
  }
}
.rhino-editor .no-cursor {
  caret-color: transparent;
}
:where(.rhino-editor) .fake-cursor {
  margin: 0;
  padding: 0;
  margin-right: -1px;
  border-left-width: 1px;
  border-left-style: solid;
  animation: rhino-blink 1s;
  animation-iteration-count: infinite;
  position: relative;
  z-index: 1;
}
:where(.rhino-editor .ProseMirror):not(:focus-within) .rhino-selection {
  background: var(--rhino-fake-selection-color);
}
.ProseMirror-separator {
  display: none !important;
}
.rhino-toolbar-button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rhino-border-color);
  border-radius: var(--rhino-border-radius);
  padding: 0.4em;
  color: var(--rhino-button-text-color);
  color: light-dark(var(--rhino-button-text-color), var(--rhino-button-dark-text-color));
  background: Canvas;
  font-size: inherit;
  display: inline-grid;
}
.rhino-toolbar-button:is([aria-disabled=true], :disabled) {
  color: var(--rhino-button-disabled-text-color);
  border-color: var(--rhino-button-disabled-border-color);
}
.rhino-toolbar-button[aria-disabled=true]:focus {
  border-color: var(--rhino-button-disabled-border-color);
}
.rhino-toolbar-button svg {
  min-height: var(--rhino-toolbar-icon-size);
  min-width: var(--rhino-toolbar-icon-size);
  max-height: var(--rhino-toolbar-icon-size);
  max-width: var(--rhino-toolbar-icon-size);
}
.rhino-toolbar-button:is(:focus, :hover):not([aria-disabled=true], :disabled) {
  outline: transparent;
  border-color: var(--rhino-button-active-border-color);
}
.rhino-toolbar-button:is(:focus):not([aria-disabled=true], :disabled) {
  box-shadow: var(--rhino-focus-ring);
}
.rhino-toolbar-button:is(:hover):not([aria-disabled=true], :disabled, [aria-pressed=true], [part~=toolbar__button--active]) {
  background-color: var(--rhino-button-focus-background-color);
  background-color: light-dark(var(--rhino-button-focus-background-color), gray);
}
.rhino-toolbar-button:is([aria-disabled=true], :disabled):not([part~=toolbar__button--active]) {
  color: var(--rhino-button-disabled-text-color);
  color: light-dark(var(--rhino-button-disabled-text-color), gray);
  border-color: var(--rhino-button-disabled-border-color);
}
.rhino-toolbar-button:is(:focus, :hover):is([aria-disabled=true], :disabled):not([part~=toolbar__button--active]) {
  outline: transparent;
  color: var(--rhino-button-disabled-text-color);
  color: light-dark(var(--rhino-button-disabled-text-color), gray);
  border-color: var(--rhino-button-disabled-border-color);
  box-shadow: 0 0 0 1px var(--rhino-button-disabled-border-color);
  box-shadow: 0 0 0 1px light-dark(var(--rhino-button-disabled-border-color), transparent);
}
/*# sourceMappingURL=trix.css.map */
.answer-rich-text-editor {
  --rhino-border-color: var(--fundaro-border);
  --rhino-button-active-border-color: var(--fundaro-brand-600);
  --rhino-border-radius: var(--fundaro-radius-container);
  --rhino-focus-ring: 0 0 0 3px rgb(111 141 232 / 0.3);
  --rhino-text-color: var(--fundaro-ink);
  --rhino-toolbar-text-color: var(--fundaro-text-secondary);

  display: block;
}

.answer-rich-text-editor[readonly] {
  opacity: 0.75;
}

.answer-rich-text-editor .ProseMirror > * + *,
.answer-rich-text-editor .trix-content > * + *,
.answer-rich-text-content > * + * {
  margin-top: 0.75rem;
}

.answer-rich-text-editor .ProseMirror a,
.answer-rich-text-editor .ProseMirror a:visited,
.answer-rich-text-content a,
.answer-rich-text-content a:visited,
.answer-rich-text-editor .trix-content a,
.answer-rich-text-editor .trix-content a:visited {
  color: var(--color-primary, #3157d5);
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.answer-rich-text-editor .ProseMirror a:hover,
.answer-rich-text-content a:hover,
.answer-rich-text-editor .trix-content a:hover {
  color: var(--color-primary-hover, #2949b8);
}
.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav-section {
  min-width: 0;
}

.sidebar-nav-parent {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3f4a5c;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.sidebar-nav-parent:hover {
  background: #f4f6fa;
  color: #0f1729;
}

.sidebar-nav-parent:focus-visible,
.sidebar-context-back:focus-visible,
.sidebar-context-entity:focus-visible,
.sidebar-context-link:focus-visible,
.sidebar-context-switcher-item:focus-visible {
  outline: 2px solid #3b53f0;
  outline-offset: 2px;
}

.sidebar-nav-parent--active {
  background: #eef1fe;
  color: #24309e;
  font-weight: 600;
}

.sidebar-nav-parent--active:hover {
  background: #eef1fe;
  color: #24309e;
}

.sidebar-nav-parent--expanded {
  color: #0f1729;
  font-weight: 600;
}

.sidebar-nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sidebar-nav-label {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.sidebar-nav-chevron {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  color: #b3bccb;
  transition: transform 160ms ease-out, color 160ms ease-out;
}

.sidebar-nav-parent[aria-expanded="true"] .sidebar-nav-chevron {
  color: #8e99ab;
  transform: rotate(90deg);
}

.sidebar-context-branch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  height: auto;
  margin: 0 0 0 19px;
  padding: 4px 0 8px 13px;
  overflow: hidden;
  list-style: none;
  opacity: 1;
  transition: height 160ms ease-out, opacity 160ms ease-out;
}

.sidebar-context-branch[hidden] {
  display: none;
}

.sidebar-context-spine {
  position: absolute;
  top: 4px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: #c3ccfa;
  pointer-events: none;
}

.sidebar-context-back,
.sidebar-context-link {
  display: flex;
  min-width: 0;
  align-items: center;
  border-radius: 7px;
  text-decoration: none;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.sidebar-context-back {
  gap: 7px;
  padding: 6px 9px 6px 0;
  color: #5b667a;
  font-size: 12.5px;
  line-height: 1.25;
}

.sidebar-context-back:hover,
.sidebar-context-link:hover {
  background: #f4f6fa;
  color: #0f1729;
}

.sidebar-context-back-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.sidebar-context-entity-item {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.sidebar-context-entity {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 8px 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f1729;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.sidebar-context-entity:hover {
  background: #f4f6fa;
}

.sidebar-context-avatar,
.sidebar-context-switcher-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #dfe4f8;
  color: #3b53f0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sidebar-context-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  font-size: 9px;
}

.sidebar-context-entity-name,
.sidebar-context-switcher-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-context-switcher-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: #98a2b3;
}

.sidebar-context-switcher {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 16rem;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(15 23 41 / 0.12);
}

.sidebar-context-switcher[hidden] {
  display: none;
}

.sidebar-context-switcher-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  color: #4a5568;
  font-size: 12.5px;
  text-decoration: none;
}

.sidebar-context-switcher-item:hover {
  background: #f4f6fa;
  color: #0f1729;
}

.sidebar-context-switcher-item--current {
  color: #24309e;
  font-weight: 600;
}

.sidebar-context-switcher-avatar {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 8px;
}

.sidebar-context-switcher-check {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #3b53f0;
}

.sidebar-context-link {
  position: relative;
  gap: 10px;
  padding: 7px 9px 7px 0;
  color: #4a5568;
  font-size: 13.5px;
  line-height: 1.25;
}

.sidebar-context-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sidebar-context-link--active {
  background: #eef1fe;
  color: #24309e;
  font-weight: 600;
}

.sidebar-context-link--active:hover {
  background: #eef1fe;
  color: #24309e;
}

.sidebar-context-link--active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -13px;
  width: 2px;
  border-radius: 2px;
  background: #3b53f0;
  content: "";
}

.sidebar-context-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

@media (max-width: 1023px) {
  .sidebar-nav-parent {
    min-height: 44px;
  }

  .sidebar-context-back,
  .sidebar-context-entity,
  .sidebar-context-link {
    min-height: 40px;
  }

  .sidebar-context-switcher-item {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-nav-parent,
  .sidebar-nav-chevron,
  .sidebar-context-branch,
  .sidebar-context-back,
  .sidebar-context-link {
    transition: none;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

dialog[data-modal-target="dialog"] {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}
