/* BITKRAFT Partner Portal — BOSS design tokens (shadcn/new-york) */

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 0%;
  --primary: 193 98% 46%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 25%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 30%;
  --accent: 268 56% 55%;
  --accent-foreground: 0 0% 100%;
  --destructive: 15 100% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 193 98% 46%;
  --radius: 0.5rem;
  --label-foreground: 0 0% 20%;
  --input-bg: 0 0% 100%;
  --surface-page: 0 0% 96.1%;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Montserrat, "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #17212B;
  background: #EDF1F4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Montserrat, "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #17212B;
}

a { color: #087CA7; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Auth pages ── */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #EDF1F4;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  color: #17212B;
  border: 1px solid #DCE4E9;
  border-radius: 1rem;
  box-shadow: 0 22px 65px rgba(22, 42, 54, .11);
  padding: 1.5rem;
}

.auth-card .page-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  text-align: center;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.brand-mark-img { height: 4rem; width: auto; }
.brand-logo { height: 1.5rem; width: auto; }
.auth-brand .brand-sub {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #667582;
}

/* ── App shell — Institutional Fund Desk ── */

.app-shell.desk-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 21px 14px 15px;
  color: #fff;
  background: #15242E;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 10px 22px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.sidebar-brand .brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

.sidebar-brand .brand-name {
  display: block;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sidebar-brand .brand-sub {
  display: block;
  margin-top: 1px;
  color: #B6C5CE;
  font-size: 10px;
  font-weight: 500;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  align-content: start;
  flex: 0 0 auto;
  padding: 18px 0 0;
  overflow-y: auto;
  min-height: 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #B6C5CE;
  text-align: left;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  transition: background-color .15s, color .15s;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.08);
  color: white;
  text-decoration: none;
}

.sidebar-nav a.active {
  background: rgba(1,168,232,.18);
  color: #fff;
  box-shadow: inset 3px 0 0 #01A8E8;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  flex: 0 0 auto;
}

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

.sidebar-spacer {
  flex: 1 1 auto;
  min-height: 12px;
}

.sidebar-footer {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 8px;
}

.secure-note {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 10px 4px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #B6C5CE;
  font-size: 10px;
  line-height: 1.45;
  margin: 0;
}

.secure-note:focus-visible {
  outline: 2px solid #01A8E8;
  outline-offset: 2px;
}

.session-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 10;
  width: 220px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: #172B38;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  white-space: pre-line;
}

.secure-note:hover .session-tooltip,
.secure-note:focus-within .session-tooltip {
  display: block;
}

.session-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
}

.secure-note[data-tooltip-dismissed] .session-tooltip {
  display: none;
}

.secure-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #70C8E8;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.org-rail {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: inherit;
}

.org-rail.static strong {
  display: block;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.org-rail-label {
  display: block;
  margin-bottom: 4px;
  color: #AFC1CA;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.org-rail select {
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
}

.org-rail select:focus {
  outline: none;
  box-shadow: none;
  border: 0;
}

.org-rail select option {
  color: #17212B;
  background: #fff;
}

.app-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #F7F9FA;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 13px 31px;
  border-bottom: 1px solid #DCE4E9;
  background: white;
  flex-shrink: 0;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.user-name {
  color: #52626D;
  font-size: 11px;
  font-weight: 650;
}

.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #D7E4EA;
  border-radius: 50%;
  background: #E3F6FD;
  color: #087CA7;
  font-size: 10px;
  font-weight: 800;
}

.view-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 3px;
  border: 1px solid #DCE5E9;
  border-radius: 10px;
  background: #F4F7F8;
}

.view-switcher-label {
  padding: 0 5px 0 7px;
  color: #74838C;
  font-size: 9px;
  font-weight: 750;
}

.view-option {
  min-height: 30px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64747E;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
}

.view-option.is-active,
.view-option[aria-pressed="true"] {
  background: #fff;
  color: #075E81;
  box-shadow: 0 1px 3px rgba(22,42,54,.12);
}

.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 34px 38px 48px;
  background: #F7F9FA;
}

.screen-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #72818B;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.app-main .page-title,
h1.page-title {
  margin: 0;
  color: #182833;
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.16;
  letter-spacing: -.04em;
  font-weight: 800;
}

.page-lede,
.lede {
  max-width: 590px;
  margin: 8px 0 0;
  color: #667681;
  font-size: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 10rem;
  padding: 1.5rem;
  background: #fff;
  color: #17212B;
  border: 1px solid #DCE4E9;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.service-card:hover {
  text-decoration: none;
  border-color: #72C7E5;
  box-shadow: 0 12px 28px rgba(30,74,93,.08);
  transform: translateY(-1px);
}

.service-card h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  flex: 1;
  color: #667582;
  line-height: 1.5;
}

.service-card-cta {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #087CA7;
}

.service-card-external {
  font-weight: 500;
}

@media (max-width: 740px) {
  .app-shell.desk-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .app-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    overflow-x: auto;
  }
  .sidebar-brand,
  .sidebar-footer,
  .sidebar-spacer {
    display: none;
  }
  .sidebar-nav {
    display: flex;
    flex: 1;
    justify-content: space-around;
    padding: 0;
    gap: 0;
  }
  .sidebar-nav a {
    justify-content: center;
    width: auto;
    min-height: 38px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .sidebar-nav a.active {
    box-shadow: inset 0 -3px 0 #01A8E8;
  }
  .nav-icon { display: none; }
  .app-topbar {
    min-height: 62px;
    padding: 10px 15px;
  }
  .user-name { display: none; }
  .app-main { padding: 22px 16px 35px; }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* ── Forms ── */

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.suggest-investor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.25rem;
}

@media (min-width: 720px) {
  .suggest-investor-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.suggest-investor-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.suggest-investor-form .form-field-span {
  grid-column: 1 / -1;
}

.suggest-investor-form .field-hint {
  margin: 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.35;
}

.suggest-investor-form .required-mark {
  color: hsl(var(--destructive));
  font-weight: 600;
}

.suggest-investor-form textarea {
  min-height: 2.75rem;
  resize: vertical;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--label-foreground));
}

input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background: hsl(var(--input-bg));
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input {
  height: 2.25rem;
}

textarea {
  min-height: 5rem;
  resize: vertical;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

input::placeholder,
textarea::placeholder {
  color: hsl(0 0% 58%);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.25);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--foreground));
}

.btn-outline {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input));
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: hsl(var(--accent) / 0.08);
}

.btn-sm {
  height: 1.75rem;
  padding: 0 0.625rem;
  font-size: 0.8125rem;
}

.auth-card .btn-primary { width: 100%; }

.logout-form { margin: 0; }

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

/* ── Feedback ── */

.error {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--destructive));
}

.success {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(91 60% 35%);
}

.muted, .muted-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.muted-link:hover {
  color: hsl(var(--foreground));
  text-decoration: none;
}

/* ── Cards & panels ── */

.panel {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.panel-head h2,
.panel > h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.panel > h3,
.group-title {
  margin: 1rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.file-list,
.people-list,
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-list li,
.doc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid #E9EEF0;
  font-size: 0.875rem;
}

.file-list li:last-child,
.doc-list li:last-child {
  border-bottom: 0;
}

.body-text {
  margin: 0;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.meta-grid dt {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-grid dd {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.person-card {
  background: #fff;
  border: 1px solid #DEE6E9;
  border-radius: 11px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.people-list > .person-card,
.people-list > li.person-card {
  list-style: none;
}

.person-card strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.person-card .muted {
  display: block;
}

.person-card a {
  font-size: 0.875rem;
}

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

.contact-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid #DEE6E9;
  border-radius: 11px;
  background: white;
}

.contact-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #D7E4EA;
  border-radius: 50%;
  background: #E3F6FD;
  color: #087CA7;
  font-size: 11px;
  font-weight: 800;
}

.contact-avatar-shared {
  border-radius: 10px;
}

.contact-group-title {
  margin: 0 0 10px;
  color: #72818B;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-list + .contact-group-title {
  margin-top: 24px;
}

.contact-info {
  min-width: 0;
  flex: 1;
}

.contact-info strong {
  display: block;
  overflow: hidden;
  color: #1D2E38;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-info small {
  display: block;
  margin-top: 4px;
  color: #76858E;
  font-size: 10px;
}

.contact-mail {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  color: #087CA7;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-mail:hover {
  color: #075E81;
  text-decoration: underline;
}

@media (max-width: 740px) {
  .contact-row {
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px;
  }
  .contact-mail {
    max-width: 100%;
    width: 100%;
    margin-left: 51px;
  }
}

/* ── Data tables ── */

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
}

.data-table th {
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.data-table thead th:first-child {
  border-radius: calc(var(--radius) - 2px) 0 0 0;
}

.data-table thead th:last-child {
  border-radius: 0 calc(var(--radius) - 2px) 0 0;
}

.data-table td {
  padding: 0.75rem;
}

.data-table .badge {
  margin: 0 0.25rem 0.25rem 0;
}

/* ── Badges ── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #DCE5E9;
  font-size: 10px;
  font-weight: 700;
  background: #EAF8FD;
  color: #075E81;
}

/* ── Org selection ── */

.org-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.org-option:hover {
  background: hsl(var(--muted) / 0.5);
  border-color: hsl(var(--ring));
}

.org-option input[type="radio"] {
  width: auto;
  height: auto;
  margin: 0;
}

.org-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.req-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ── Fundraising: investor selection ── */

.badge-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  font-weight: 500;
}

.js-only { display: none; }
.js .js-only { display: revert; }
.js .no-js-only { display: none; }

.js td.js-only,
.js th.js-only { display: table-cell; }

/* The display overrides above must never resurrect an element hidden by JS. */
.js-only[hidden],
.no-js-only[hidden],
.step[hidden],
[data-investor-row][hidden],
.table-scroll[hidden] { display: none !important; }

fieldset.step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.step-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.4);
  font-size: 0.875rem;
}

.investor-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.investor-picker-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.investor-picker-row select { flex: 1 1 auto; min-width: 0; }
.investor-picker-row .btn { flex: 0 0 auto; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.investor-filters {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .investor-filters {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  }
}

.investor-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.investor-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.investor-list-scroll {
  max-height: 24rem;
  overflow-y: auto;
}

.investor-browse-table,
.investor-selected-table,
.fundraising-intros-table {
  min-width: 48rem;
}

.fundraising-intros-section {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
}

.fundraising-intros-section + .fundraising-intros-section {
  margin-top: 1.25rem;
}

.fundraising-intros-pending {
  background: hsl(var(--muted) / 0.28);
  border-style: dashed;
}

.fundraising-intros-section-head {
  margin-bottom: 0.75rem;
}

.fundraising-intros-section-head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.fundraising-intros-section-head .muted {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
}

.investor-list-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: hsl(var(--muted));
}

.investor-browse-table tbody tr.is-selected,
.investor-selected-table tbody tr.is-selected {
  background: hsl(var(--muted) / 0.35);
}

.investor-list-sentinel {
  height: 1px;
}

.investor-list-status {
  margin-top: 0.5rem;
}

.investor-selected-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.investor-selected-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.fundraising-discard {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  box-shadow: var(--shadow);
}

.fundraising-step-actions {
  justify-content: flex-start;
}

.fundraising-submit-pending {
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.06);
}

.fundraising-submit-status {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

/* ── Fundraising process header ── */

.fundraising-activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.fundraising-activity-head h2 {
  margin: 0 0 0.25rem;
}

.fundraising-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.fundraising-activity-list li {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.fundraising-activity-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.fundraising-activity-body {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--border, #d0d5dd);
  color: var(--text, #1a1a1a);
  white-space: pre-wrap;
  word-break: break-word;
}

.fundraising-process-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.fundraising-process-head h2 {
  margin: 0 0 0.25rem;
}

.fundraising-process-meta {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.fundraising-process-meta strong {
  color: hsl(var(--foreground));
}

.fundraising-process-sep {
  margin: 0 0.35rem;
  color: hsl(var(--muted-foreground));
}

.fundraising-process-blurb {
  margin: 0 0 0.75rem;
}

.fundraising-process-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.fundraising-materials {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.45);
}

.fundraising-materials-head h3 {
  margin: 0 0 0.35rem;
}

.fundraising-materials-head .muted {
  margin: 0 0 1rem;
}

.fundraising-materials-form {
  margin: 0;
}

.fundraising-deck-current {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.fundraising-deck-link {
  font-size: 0.875rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  white-space: nowrap;
}

.status-badge.status-active {
  background: hsl(142 40% 92%);
  border-color: hsl(142 35% 72%);
  color: hsl(142 50% 24%);
}

.status-badge.status-preparing_intros,
.status-badge.status-submitted,
.status-badge.status-needs_account_partner,
.status-badge.status-needs_fund_assignment {
  background: hsl(38 90% 92%);
  border-color: hsl(38 70% 72%);
  color: hsl(28 60% 28%);
}

.status-badge.status-withdrawn,
.status-badge.status-closed {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.intro-status-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.intro-status-select {
  min-width: 8.5rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
}

/* ── Intro shared messages (BOSS parity) ── */

.fundraising-intros-table .intro-messages-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.fundraising-intros-table .intro-messages-toggle.is-active {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.fundraising-intros-table .intro-messages-toggle.is-unread {
  border-color: hsl(var(--primary));
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.45);
}

.intro-messages-icon {
  flex-shrink: 0;
}

.intro-messages-row > td {
  background: hsl(var(--muted) / 0.35);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.intro-messages-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
}

.intro-messages-title {
  font-size: 0.875rem;
  font-weight: 500;
}

.intro-messages-subtitle {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.intro-messages-list {
  max-height: 18rem;
  overflow-y: auto;
  display: grid;
  gap: 0.75rem;
  padding-right: 0.25rem;
}

.intro-messages-empty {
  margin: 0;
  font-size: 0.875rem;
}

.intro-message-bubble {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.35);
  padding: 0.75rem;
}

.intro-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.intro-message-author {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.intro-message-body {
  white-space: pre-wrap;
  line-height: 1.5;
}

.intro-messages-compose textarea {
  width: 100%;
  min-height: 5rem;
  padding: 0.5rem;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
}

.intro-messages-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.intro-messages-count {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.multi-select {
  position: relative;
}

.multi-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--input-bg));
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.multi-select-trigger.has-value {
  color: hsl(var(--foreground));
}

.multi-select-trigger:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.25);
}

.multi-select.is-open .multi-select-trigger {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.25);
}

.multi-select-caret {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  flex-shrink: 0;
  margin-top: -0.2rem;
}

.multi-select.is-open .multi-select-caret {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.multi-select-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  box-shadow: var(--shadow-sm);
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  cursor: pointer;
}

.multi-select-option:hover {
  background: hsl(var(--muted) / 0.55);
}

.multi-select-option input {
  width: auto;
  height: auto;
  margin: 0;
  accent-color: hsl(var(--primary));
}

.multi-select-empty {
  margin: 0;
  padding: 0.5rem 0.55rem;
}


.cf-turnstile { margin: 0.25rem 0; }

/* ── Funds / Shared Files — Institutional Fund Desk ── */

.relationship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.relationship-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 228px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #DCE5E9;
  border-radius: 15px;
  background: #fff;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: border-color .17s ease, transform .17s ease, box-shadow .17s ease;
}

.relationship-card:hover {
  border-color: #72C7E5;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30,74,93,.08);
  text-decoration: none;
}

.relationship-card.is-disabled {
  cursor: default;
}

.relationship-card.is-disabled:hover {
  border-color: #DCE5E9;
  transform: none;
  box-shadow: none;
}

.relationship-card.raise {
  background: linear-gradient(135deg, #F1FBFF 0%, #fff 73%);
}

.relationship-card.invested {
  background: linear-gradient(135deg, #FFF9F5 0%, #fff 75%);
}

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

.card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #E3F6FD;
  color: #087CA7;
}

.invested .card-icon {
  background: #FFF0E8;
  color: #B84F25;
}

.relationship-card.shared {
  background: linear-gradient(135deg, #F4F6F8 0%, #fff 75%);
}

.shared .card-icon {
  background: #EDF1F4;
  color: #3D5562;
}

.share-until {
  color: #B84F25;
  font-weight: 600;
}

.card-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.count-pill {
  padding: 5px 9px;
  border: 1px solid #DAE5E9;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: #52616B;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.relationship-card h2 {
  margin: 21px 0 7px;
  color: #1B2C37;
  font-size: 19px;
  letter-spacing: -.03em;
}

.relationship-card p {
  max-width: 390px;
  margin: 0;
  color: #64747E;
  font-size: 11px;
  line-height: 1.65;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: #53636E;
  font-size: 10px;
  font-weight: 700;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #087CA7;
}

.arrow { font-size: 16px; line-height: 1; }

.access-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 19px;
  padding: 13px 15px;
  border: 1px solid #E0E8EC;
  border-radius: 11px;
  background: rgba(255,255,255,.7);
  color: #5F6F79;
  font-size: 10px;
}

.access-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #087CA7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid #D3DEE4;
  border-radius: 8px;
  background: white;
  color: #334752;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  border-color: #80CAE5;
  color: #076C94;
  text-decoration: none;
}

.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.primary {
  border-color: #01A8E8;
  background: #01A8E8;
  color: #fff;
}

.button.primary:hover {
  background: #087CA7;
  color: #fff;
}

.button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 17px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #087CA7;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.back-button:hover { text-decoration: none; color: #075E81; }

.fund-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fund-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid #DEE6E9;
  border-radius: 11px;
  background: white;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.fund-row:hover {
  border-color: #78C9E5;
  box-shadow: 0 5px 15px rgba(30,74,93,.06);
  text-decoration: none;
}

.fund-info { min-width: 0; flex: 1; }

.fund-info strong {
  display: block;
  overflow: hidden;
  color: #1D2E38;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-info small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #76858E;
  font-size: 9px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.row-chevron { color: #8B9AA3; font-size: 18px; }

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 11px;
  color: #71808A;
  font-size: 10px;
}

.fund-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 19px;
  border: 1px solid #DAE6EA;
  border-radius: 13px;
  background: linear-gradient(100deg, #E9F8FD, #FFFFFF 68%);
}

.fund-banner h2 {
  margin: 0;
  color: #1B2E3A;
  font-size: 17px;
  letter-spacing: -.025em;
}

.fund-banner p {
  margin: 4px 0 0;
  color: #667782;
  font-size: 10px;
}

/* Invested fund page: Reporting | Marketing tabs and the Reporting year view. */
.fund-tabs {
  display: flex;
  gap: 22px;
  margin: 0 0 14px;
  border-bottom: 1px solid #E1E8EB;
}

.fund-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 2px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: #5D6E78;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.fund-tab:hover { color: #1B2E3A; text-decoration: none; }
.fund-tab[aria-current="page"] { border-bottom-color: hsl(var(--primary)); color: #0E7EA6; }

.fund-tab-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: #EEF4F6;
  color: #5D6E78;
  font-size: 9px;
  font-weight: 750;
}

.fund-tab[aria-current="page"] .fund-tab-count { background: #E3F6FD; color: #0E7EA6; }

.year-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 12px;
}

.year-filter small { color: #56656E; font-size: 9px; }

.year-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid #DEE6EA;
  border-radius: 9px;
  background: #F5F8F9;
}

.year-chip {
  padding: 5px 11px;
  border-radius: 7px;
  color: #5D6E78;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.year-chip:hover { color: #1B2E3A; text-decoration: none; }
.year-chip[aria-current="true"] { background: white; color: #1B2E3A; box-shadow: var(--shadow-sm); }

.report-group {
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid #DEE6EA;
  border-radius: 12px;
  background: white;
}

.report-group > details > summary,
.report-year > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.report-group > details > summary::-webkit-details-marker,
.report-year > summary::-webkit-details-marker { display: none; }

.report-group > details > summary::before,
.report-year > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid #7A8992;
  border-bottom: 1.6px solid #7A8992;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}

.report-group > details[open] > summary::before,
.report-year[open] > summary::after { transform: rotate(45deg); }

.report-group-head { padding: 13px 16px; border-bottom: 1px solid #E9EEF0; }
.report-group-title { flex: 1; min-width: 0; }
.report-group-title strong { display: block; color: #1B2E3A; font-size: 11px; }
.report-group-title small { display: block; margin-top: 2px; color: #56656E; font-size: 9px; }
.report-group-count { color: #56656E; font-size: 9px; font-weight: 650; white-space: nowrap; }

.report-year > summary {
  justify-content: flex-start;
  gap: 4px;
  padding: 9px 16px;
  border-bottom: 1px solid #E9EEF0;
  background: #F8FAFB;
  color: #56656E;
  font-size: 10px;
}

.report-year > summary strong { color: #3B4C56; }
.report-year > summary::after { margin-left: auto; }
.report-year:last-child:not([open]) > summary { border-bottom: 0; }

.report-group summary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: -2px; }

.period-pill {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #E3F6FD;
  color: #0E7EA6;
  font-size: 8.5px;
  font-weight: 750;
  vertical-align: 1px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 19px 0 9px;
}

.section-heading h3 { margin: 0; font-size: 13px; }
.section-heading small { color: #788791; font-size: 9px; }

.file-table {
  overflow: hidden;
  border: 1px solid #DEE6EA;
  border-radius: 12px;
  background: white;
}

/* Marketing folders follow the unfoldered materials as Reporting-style sections. */
.file-table + .marketing-folder { margin-top: 12px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 14px;
  border-bottom: 1px solid #E9EEF0;
}

.file-row:last-child { border-bottom: 0; }

.file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 36px;
  border: 1px solid #DAE7EC;
  border-radius: 8px;
  background: #F3FAFC;
  color: #1380A4;
  font-size: 9px;
  font-weight: 850;
}

.file-icon.xlsx {
  background: #F2F8EF;
  color: #44833B;
  border-color: #DDE9D6;
}

.file-detail { min-width: 0; flex: 1; }

.file-detail strong {
  display: block;
  overflow: hidden;
  color: #293943;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-detail small {
  display: block;
  margin-top: 3px;
  color: #7A8992;
  font-size: 9px;
}

.file-row .button { flex: 0 0 auto; }

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

.folder-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 11px 13px;
  border: 1px solid #DEE6EA;
  border-radius: 10px;
  background: white;
  color: #253943;
  text-align: left;
  text-decoration: none;
}

.folder-card:hover {
  border-color: #7ACAE5;
  background: #FBFEFF;
  text-decoration: none;
}

.folder-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #FFF2E9;
  color: #B95C31;
}

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

.folder-card strong { display: block; font-size: 10px; }
.folder-card small { display: block; margin-top: 2px; color: #7A8991; font-size: 9px; }

.empty-box {
  padding: 27px 18px;
  border: 1px dashed #D1DDE3;
  border-radius: 11px;
  color: #74838D;
  background: white;
  text-align: center;
  font-size: 11px;
}

.file-preview {
  padding: 22px;
  border: 1px solid #DBE5E9;
  border-radius: 13px;
  background: white;
}

.file-preview-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
}

.file-preview .page-title { font-size: 16px; }

@media (max-width: 740px) {
  .relationship-grid { grid-template-columns: 1fr; gap: 11px; }
  .relationship-card { min-height: 202px; padding: 18px; }
  .fund-banner { align-items: flex-start; flex-direction: column; }
  .folder-grid { grid-template-columns: 1fr; }
  .file-row { gap: 8px; padding: 9px; }
  .file-row .button { min-height: 32px; padding: 6px 8px; }
}

.marketing-frame {
  display: block;
  width: 100%;
  height: 75vh;
  border: 1px solid #DEE6EA;
  border-radius: 12px;
  background: white;
}

.present { position: fixed; inset: 0; height: 100dvh; display: flex; flex-direction: column; background: #0B1114; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.present-bar { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); color: #fff; background: #11191E; border-bottom: 1px solid #1F2A30; flex: none; }
.present-brand { font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; color: #fff; }
.present-exit { color: #9FB3BD; text-decoration: none; white-space: nowrap; }
.present-exit:hover { color: #fff; }
.present-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.present-title strong, .present-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.present-title small { color: #9FB3BD; }
.present-fullscreen { border: 1px solid #2B3940; background: transparent; color: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; white-space: nowrap; }
.present-fullscreen:hover { background: #1F2A30; }
.present-fullscreen[data-failed] { border-color: #FF6B35; }
.present-stage { flex: 1; min-height: 0; }
.present-frame { display: block; width: 100%; height: 100%; border: 0; background: #000; }
/* Fullscreen: the bar collapses to a compact portal-owned overlay so trusted chrome never disappears (spoofing mitigation). */
.present:fullscreen { padding: 0; }
.present:fullscreen .present-bar { position: absolute; top: 8px; right: 8px; left: auto; height: 32px; gap: 10px; padding: 0 10px; border: 1px solid #2B3940; border-radius: 999px; background: rgba(17, 25, 30, 0.85); z-index: 1; }
.present:fullscreen .present-exit, .present:fullscreen .present-title small { display: none; }
.present:fullscreen .present-brand { font-size: 12px; }
.present:fullscreen .present-title strong { font-size: 12px; max-width: 240px; }
.present:fullscreen .present-fullscreen { padding: 2px 8px; font-size: 12px; }
/* PDF reader: Download in the bar, and the chrome's own failure message over the viewer frame. */
.present-download { border: 1px solid #2B3940; color: #fff; border-radius: 8px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.present-download:hover { background: #1F2A30; }
.present-download[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; background: none; }
.present:fullscreen .present-download { padding: 2px 8px; font-size: 12px; }
.reader-stage { position: relative; }
.reader-message { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 0.3em; padding: 24px; color: #fff; background: #0B1114; text-align: center; }
.reader-message[hidden] { display: none; }
.reader-message a { color: #01A8E8; }
/* Reader fullscreen: the bar stays a compact strip above the frame instead of a pill over it, so the
   viewer's own toolbar (pager, view toggle, zoom) stays hit-testable. */
.present[data-reader]:fullscreen .present-bar { position: static; height: 36px; border: 0; border-bottom: 1px solid #1F2A30; border-radius: 0; background: #11191E; }
/* Phone width: the bar keeps the title readable; brand text and the "All funds" label go, the arrow stays. */
@media (max-width: 740px) {
  .present-bar { gap: 10px; }
  .present-brand { display: none; }
  .present-exit span { display: none; }
}
/* Video player (/play): the poster fills the stage under a Play button with the duration. */
.player-stage { position: relative; display: grid; place-items: center; background: #000; }
.player-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.player-start { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.player-start[hidden] { display: none; }
.player-start-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #01A8E8; box-shadow: 0 8px 30px rgba(1, 168, 232, 0.45); }
.player-start:hover .player-start-icon { background: #087CA7; }
.player-start:focus-visible .player-start-icon { outline: 2px solid #fff; outline-offset: 3px; }
.player-start svg { width: 34px; height: 34px; margin-left: 5px; fill: #fff; }
.player-start small { font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.player-message { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; color: #fff; background: rgba(11, 17, 20, 0.92); text-align: center; }
.player-message[hidden], .player-message [hidden] { display: none; }
.player-message strong { font-size: 16px; }
.player-message .button { margin-top: 10px; font-family: inherit; font-size: 13px; }
.file-row .button.play svg { fill: currentColor; stroke: none; }
.file-duration { font-variant-numeric: tabular-nums; }
.present-download { display: inline-flex; align-items: center; gap: 6px; }
.present-download svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 480px) {
  .present-bar { gap: 8px; padding: 0 12px; }
  .present-download, .present-fullscreen { padding: 4px 8px; font-size: 13px; }
  .present-label { display: none; }
}

/* View as: a staff member's read-only view of one portal user. A fixed colour no portal surface
   uses, so the view is never mistaken for the user's own session. White on #7A1F5C is about 9:1. */
.view-as-banner { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; min-height: 40px; box-sizing: border-box; padding: 6px 16px; background: #7A1F5C; color: #fff; font-size: 14px; line-height: 1.3; }
.view-as-text { margin: 0; }
.view-as-text strong { font-weight: 700; }
.view-as-banner [data-view-as-countdown] { font-variant-numeric: tabular-nums; }
.view-as-end { margin: 0; }
.view-as-end button { border: 1px solid #fff; background: #fff; color: #7A1F5C; border-radius: 6px; padding: 4px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.view-as-end button:hover { background: transparent; color: #fff; }
.view-as-end button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body[data-view-as] .present { top: 40px; height: calc(100dvh - 40px); }

/* ── Dashboard (Overview page) ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dash-welcome { align-items: flex-start; }
.dash-since { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-pill { background: #fff; border: 1px solid #DEE6E9; border-radius: 11px; padding: 10px 14px; min-width: 132px; }
.dash-pill b { display: block; font-size: 20px; color: #182833; }
.dash-pill small { color: #56656E; font-size: 12px; }
.dash-pill.is-hot b { color: #C2410C; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: 1.5rem; align-items: start; }
.dash-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.dash-grid.is-single .dash-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dash-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: .75rem; }
.dash-panel-head h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.dash-sub { margin: 2px 0 8px; color: #56656E; font-size: 13px; }
.dash-panel-head .dash-sub { margin-bottom: 0; }
.dash-links { display: flex; gap: 14px; white-space: nowrap; }
.dash-contacts .contact-row { min-height: 56px; padding: 8px 10px; }
.new-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #C2410C; border-radius: 4px; color: #C2410C; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.dash-group { margin: 1rem 0 .6rem; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #56656E; }
.news-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.news-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.news-card { display: flex; flex-direction: column; border: 1px solid #DEE6E9; border-radius: 11px; background: #fff; color: #182833; overflow: hidden; }
.news-card:hover { border-color: #78C9E5; box-shadow: 0 5px 15px rgba(30,74,93,.06); text-decoration: none; }
.news-card:focus-visible { outline: 2px solid #01A8E8; outline-offset: 2px; }
.news-card.insight { flex-direction: row; }
.news-tile { width: 42%; min-height: 150px; flex-shrink: 0; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.25; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: linear-gradient(135deg, #15242E, #2c4656); }
.news-tile.tile-1 { background: linear-gradient(135deg, #0478A8, #076C94); }
.news-tile span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.news-body { display: flex; flex-direction: column; padding: 13px 15px; flex: 1; min-width: 0; }
.news-src { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #56656E; margin-bottom: 6px; }
.news-text { font-size: 13px; line-height: 1.5; color: #2b3a44; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.news-more { margin-top: auto; font-size: 12px; font-weight: 600; color: #076C94; }
.soc { width: 16px; height: 16px; border-radius: 3px; display: inline-grid; place-items: center; color: #fff; font-style: normal; font-size: 9px; font-weight: 800; }
.soc.li { background: #0A66C2; }
.soc.x { background: #000; }
.soc.web { background: #0478A8; }
.soc.yt { background: #CC0000; }
.dash-follow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid #DEE6E9; }
.dash-follow > span { font-size: 12px; color: #56656E; margin-right: 4px; }
@media (max-width: 1100px) { .news-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .news-insights { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .news-posts, .dash-grid.is-single .dash-contacts { grid-template-columns: 1fr; }
  .news-card.insight { flex-direction: column; }
  .news-tile { width: auto; min-height: 110px; }
  .dash-panel-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .news-card { transition: none; } }
