:root {
  --bg: #f2f5fb;
  --bg-strong: #e6edf8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #516178;
  --border: rgba(15, 23, 42, 0.08);
  --navy: #102a5e;
  --navy-soft: #16397d;
  --accent: #2d5bff;
  --success: #0f9f8c;
  --danger: #c2415a;
  --warning: #d97706;
  --shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: "Roboto", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(45, 91, 255, 0.09), transparent 32%),
    radial-gradient(circle at bottom right, rgba(15, 159, 140, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  position: relative;
}

.hidden {
  display: none !important;
}

.background-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.glow-a {
  top: -120px;
  left: -80px;
  background: rgba(45, 91, 255, 0.2);
}

.glow-b {
  right: -80px;
  bottom: -120px;
  background: rgba(15, 159, 140, 0.18);
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.login-card {
  width: min(620px, 100%);
  background: linear-gradient(150deg, rgba(16, 42, 94, 0.97), rgba(17, 24, 39, 0.96));
  color: white;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  padding: 38px;
}

.brand-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
  margin-bottom: 20px;
  object-fit: contain;
}

.brand-logo-light {
  filter: brightness(0) invert(1);
}

.brand-logo-login {
  height: 88px;
  margin-bottom: 22px;
}

.login-card h1,
.workspace-header h1,
.drawer-panel h2,
.brand-card h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.login-card p,
.brand-card p,
.brand-kicker,
.helper-text {
  color: rgba(255, 255, 255, 0.74);
}

.workspace-header p,
.workspace-kicker,
.board-kicker,
.drawer-kicker,
.table-caption {
  color: #4f6484;
}

.eyebrow,
.brand-kicker,
.workspace-kicker,
.board-kicker,
.drawer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}

.login-form,
.project-form,
.board-grid,
.direction-list,
.stats-grid,
.workspace,
.sidebar,
.roadmap-list {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  min-width: 0;
}

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

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.96);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(45, 91, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(45, 91, 255, 0.12);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--navy-soft));
  color: white;
  box-shadow: 0 12px 26px rgba(45, 91, 255, 0.25);
}

.secondary-button {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 24px;
  padding: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 100vh;
  padding: 22px;
  gap: 18px;
}

.sidebar,
.card,
.drawer-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.sidebar {
  align-content: start;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.brand-card {
  background: linear-gradient(160deg, rgba(16, 42, 94, 0.98), rgba(29, 78, 216, 0.96));
  border-radius: 22px;
  color: white;
  padding: 24px;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 16px;
}

.stat-card h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.sidebar-section h3,
.projects-table h3,
.roadmap-header h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.direction-button {
  width: 100%;
  text-align: left;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid transparent;
  padding: 14px 16px;
  border-radius: 18px;
}

.direction-button.active {
  background: rgba(16, 42, 94, 0.08);
  border-color: rgba(16, 42, 94, 0.12);
}

.home-button {
  margin-top: 2px;
}

.direction-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.direction-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.direction-meta,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.meta-chip,
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.meta-chip {
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
}

.workspace {
  align-content: start;
  min-width: 0;
}

.home-overview {
  display: grid;
  gap: 18px;
}

.discussion-badge {
  background: rgba(234, 179, 8, 0.14);
  color: #a16207;
}

.home-card {
  display: grid;
  gap: 18px;
}

.home-section-header {
  align-items: flex-start;
}

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

.leader-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.leader-card-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.leader-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(29, 78, 216, 0.18);
}

.leader-photo-wrap {
  aspect-ratio: 4 / 4.6;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #d8e3f2, #eef3f9);
  position: relative;
}

.leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-photo-upload-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 23, 48, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 18px rgba(11, 23, 48, 0.2);
}

.leader-photo-upload-button input {
  display: none;
}

.leader-body {
  display: grid;
  gap: 6px;
}

.leader-body h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0b1730;
}

.leader-body p {
  margin: 0;
  color: #52657f;
  font-size: 13px;
  line-height: 1.45;
}

.landing-directions-grid {
  display: grid;
  gap: 14px;
}

.landing-directions-main {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(220px, 0.82fr) minmax(340px, 1.28fr) minmax(220px, 0.82fr);
  gap: 10px;
  align-items: stretch;
}

.landing-direction-column {
  display: grid;
  gap: 8px;
}

.landing-direction-column-left {
  grid-column: 1;
  justify-items: stretch;
}

.landing-direction-column-right {
  grid-column: 3;
  justify-items: stretch;
}

.landing-direction-card {
  display: grid;
  gap: 6px;
  text-align: left;
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.92);
}

.landing-direction-card.active {
  background: rgba(16, 42, 94, 0.06);
  border-color: rgba(16, 42, 94, 0.14);
}

.landing-direction-center {
  grid-column: 2;
  position: relative;
  display: grid;
  place-items: center;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  min-height: 100%;
  padding: 10px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(79, 132, 214, 0.18), rgba(79, 132, 214, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 255, 0.82));
  border: 1px solid rgba(68, 103, 158, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 36px rgba(23, 45, 88, 0.08);
}

.landing-direction-center-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.landing-direction-center-logo-shell {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: calc(100% - 4px);
  max-width: none;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.98), rgba(234, 241, 251, 0.96) 64%, rgba(215, 227, 244, 0.92));
  border: 1px solid rgba(74, 109, 167, 0.14);
  box-shadow:
    inset 0 2px 12px rgba(255, 255, 255, 0.9),
    0 20px 42px rgba(25, 49, 96, 0.14);
}

.landing-direction-center-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 999px;
  border: 1px dashed rgba(92, 126, 184, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.landing-direction-center-orbit.orbit-one {
  width: calc(100% - 10px);
  aspect-ratio: 1 / 1;
  height: auto;
}

.landing-direction-center-orbit.orbit-two {
  width: calc(100% + 12px);
  aspect-ratio: 1 / 1;
  height: auto;
  border-color: rgba(92, 126, 184, 0.14);
}

.landing-direction-accent {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  display: block;
}

.landing-direction-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0b1730;
}

.landing-direction-meta {
  font-size: 11px;
  color: #60728d;
  font-weight: 700;
}

.landing-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-support-card {
  display: grid;
  gap: 8px;
  text-align: left;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.landing-support-card.active {
  border-color: rgba(16, 42, 94, 0.2);
  background: rgba(16, 42, 94, 0.05);
}

.landing-support-accent {
  width: 42px;
  height: 6px;
  border-radius: 999px;
  display: block;
}

.landing-support-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0b1730;
}

.landing-support-meta {
  font-size: 12px;
  color: #60728d;
  font-weight: 700;
}

.discussion-projects-list {
  display: grid;
  gap: 12px;
}

.discussion-project-card {
  display: grid;
  gap: 10px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.92);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.discussion-project-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(16, 42, 94, 0.14);
}

.discussion-project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.discussion-project-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: #0b1730;
}

.discussion-project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #60728d;
  font-size: 12px;
  font-weight: 700;
}

.discussion-project-card-text {
  color: #44556f;
  font-size: 13px;
  line-height: 1.5;
}

.discussion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  color: #0b1730;
}

.discussion-toggle input {
  width: 16px;
  height: 16px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.workspace-header h1,
.board-header h3,
.table-header h3,
.drawer-panel h2,
.roadmap-header h3,
.attachments-header h3 {
  color: #0b1730;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0b1730;
  font-size: 13px;
  font-weight: 700;
}

.card {
  border-radius: var(--radius-xl);
  padding: 20px;
}

.direction-board .board-header,
.table-header,
.drawer-header,
.roadmap-header,
.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.direction-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 300px);
  gap: 18px;
  align-items: start;
}

.direction-board-main {
  display: grid;
  gap: 14px;
}

.board-grid,
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.investment-form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
}

.investment-form-section h3 {
  margin: -4px 0 0;
  color: #0b1730;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.kpi-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-notes,
.form-grid .full,
.roadmap-item-grid .full {
  grid-column: 1 / -1;
}

.direction-readonly-summary {
  display: grid;
  gap: 14px;
}

.readonly-list {
  display: grid;
  gap: 14px;
}

.readonly-list-item {
  display: grid;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.readonly-list-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.readonly-list-label {
  font-size: 11px;
  color: #60728d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.readonly-list-value {
  font-size: 15px;
  line-height: 1.6;
  color: #152645;
}

.readonly-placeholder {
  color: #7f8ea4;
  font-style: italic;
}

.direction-lead-card-shell {
  position: sticky;
  top: 18px;
}

.direction-lead-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(240, 244, 251, 0.92));
}

.direction-lead-card-photo-shell {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 44, 83, 0.08), rgba(22, 44, 83, 0.02));
  display: grid;
  place-items: center;
}

.direction-lead-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-lead-card-caption {
  font-size: 11px;
  color: #60728d;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.direction-lead-card-name {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #0b1730;
}

.direction-lead-card-role {
  font-size: 14px;
  line-height: 1.55;
  color: #44556f;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}

.projects-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.projects-table th {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: left;
  padding: 0 14px 14px;
}

.projects-table td {
  padding: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: top;
  font-size: 13px;
}

.projects-table tbody tr {
  cursor: pointer;
  transition: background 0.16s ease;
}

.projects-table tbody tr:hover {
  background: rgba(45, 91, 255, 0.03);
}

.projects-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.projects-pagination-summary {
  font-size: 13px;
  font-weight: 700;
  color: #60728d;
}

.projects-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-page-button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(247, 250, 252, 0.92);
  color: #10203f;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.pagination-page-button:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 42, 94, 0.14);
  background: rgba(16, 42, 94, 0.04);
}

.pagination-page-button.active {
  background: linear-gradient(145deg, rgba(16, 42, 94, 0.98), rgba(24, 63, 130, 0.94));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 42, 94, 0.18);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: #7b8da8;
  font-size: 16px;
  font-weight: 800;
}

.project-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-subtitle {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.project-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.project-cell-body {
  min-width: 0;
}

.project-cover-mini {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(12, 28, 63, 0.98), rgba(34, 66, 128, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.project-cover-mini-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-cover-mini-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 7px;
}

.project-cover-mini-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.stage-badge {
  white-space: nowrap;
}

.stage-init { background: rgba(148, 163, 184, 0.18); color: #334155; }
.stage-work { background: rgba(45, 91, 255, 0.14); color: #1d4ed8; }
.stage-approve { background: rgba(217, 119, 6, 0.16); color: #b45309; }
.stage-run { background: rgba(15, 159, 140, 0.16); color: #0f766e; }
.stage-pause { background: rgba(194, 65, 90, 0.14); color: #be123c; }
.stage-done { background: rgba(34, 197, 94, 0.16); color: #15803d; }

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(9, 18, 35, 0.22);
  display: grid;
  justify-items: stretch;
  z-index: 30;
}

.drawer-panel {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  border-radius: 0;
  background: #f6f8fb;
  padding: 28px 34px 40px;
}

.drawer-right {
  justify-items: end;
}

.admin-drawer-panel,
.activity-drawer-panel {
  width: min(1080px, 100vw);
}

.drawer-actions {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.project-form {
  grid-template-columns: 220px minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

.project-form > :not(.project-edit-nav):not(.project-side-upload) {
  grid-column: 2;
}

.project-edit-nav {
  grid-column: 1;
  display: grid;
  gap: 8px;
  position: sticky;
  top: 112px;
  align-self: start;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.project-edit-nav button {
  width: 100%;
  border-radius: 12px;
  background: transparent;
  padding: 11px 12px;
  color: #516178;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.project-edit-nav button.is-active {
  background: #edf4ff;
  color: #0b5bd3;
}

.project-section-panel:not(.project-side-upload):not(.is-active) {
  display: none !important;
}

.project-section,
.project-side-upload,
.roadmap-editor-section,
.attachments-section,
.project-comments-section,
.activity-panel-project {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.project-section,
.project-side-upload {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.roadmap-editor-section,
.attachments-section,
.project-comments-section,
.activity-panel-project {
  padding: 18px;
}

.project-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.project-section-head h3,
.project-side-upload h3 {
  margin: 4px 0 0;
  color: #0b1730;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.project-section-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #edf4ff;
  padding: 0 12px;
  color: #0b5bd3;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.project-side-upload {
  grid-column: 3;
  grid-row: 1 / span 6;
  position: sticky;
  top: 112px;
}

.project-side-title {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.project-side-title span {
  color: #60728d;
  font-size: 12px;
  font-weight: 700;
}

.project-side-title strong {
  color: #0b1730;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.timeline-slot {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
}

.timeline-slot-title {
  color: #10203f;
  font-size: 14px;
  font-weight: 800;
}

.request-role-field,
.custom-metrics-list {
  display: grid;
  gap: 12px;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.96);
  padding: 0 14px;
  color: #10203f;
}

.checkbox-pill input {
  width: auto;
}

.custom-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
}

.custom-metric-remove {
  align-self: end;
}

.add-metric-button {
  justify-self: start;
}

.roadmap-item {
  position: relative;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 16px;
}

.cover-section {
  display: grid;
  gap: 14px;
}

.cover-section-compact {
  gap: 12px;
}

.cover-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cover-preview {
  min-height: 72px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(247, 250, 252, 0.94);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 10px 12px;
}

.cover-preview img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.cover-preview.compact {
  min-height: 190px;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
}

.project-side-upload .attachments-header {
  display: grid;
  gap: 14px;
  align-items: start;
}

.project-side-upload .cover-actions {
  width: 100%;
}

.project-side-upload .cover-actions > * {
  display: inline-flex;
  align-items: center;
  flex: 1 1 120px;
  justify-content: center;
  min-height: 44px;
  padding: 13px 18px;
}

.project-side-upload .cover-preview img {
  width: 100%;
  height: 168px;
  border-radius: 14px;
}

.cover-preview-default.compact {
  min-height: 54px;
}

.cover-preview-default-logo.compact {
  width: 48px;
  height: 48px;
}

.cover-preview-mini-image {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.cover-preview-empty {
  color: #60728d;
  font-size: 13px;
  font-weight: 700;
}

.cover-preview-default {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cover-preview-default-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cover-preview-caption {
  color: #10203f;
  font-size: 13px;
  font-weight: 700;
}

.attachments-section {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.attachments-list {
  display: grid;
  gap: 12px;
}

.activity-section,
.activity-panel {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.comments-section {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.attachments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.upload-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.helper-inline {
  font-size: 13px;
  color: #60728d;
}

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

.attachment-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(247, 250, 252, 0.94);
  border-radius: 18px;
  overflow: hidden;
  min-height: 96px;
}

.attachment-card-image {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbe7f7, #eef4fb);
}

.attachment-card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.attachment-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #10203f;
  line-height: 1.35;
  word-break: break-word;
}

.attachment-card-meta {
  font-size: 12px;
  color: #62758f;
}

.attachment-card-link {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.attachment-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.attachment-card-button {
  background: rgba(15, 23, 42, 0.06);
  color: #10203f;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
}

.attachment-card-button[disabled] {
  opacity: 0.75;
  cursor: default;
  transform: none;
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(247, 250, 252, 0.92);
}

.activity-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.activity-item-title {
  font-size: 14px;
  font-weight: 800;
  color: #10203f;
  line-height: 1.4;
}

.activity-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #62758f;
}

.activity-item-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 42, 94, 0.08);
  color: #102a5e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.activity-item-empty {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  color: #60728d;
  font-size: 13px;
  background: rgba(248, 250, 252, 0.86);
}

.comments-panel {
  display: grid;
  gap: 14px;
}

.project-readonly-summary {
  display: grid;
  gap: 14px;
}

.readonly-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.94);
}

.readonly-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0b1730;
  letter-spacing: -0.02em;
}

.readonly-card-text {
  font-size: 14px;
  line-height: 1.65;
  color: #22324f;
  white-space: pre-wrap;
}

.readonly-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.readonly-meta-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.readonly-meta-label {
  font-size: 11px;
  color: #60728d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.readonly-meta-value {
  font-size: 14px;
  font-weight: 800;
  color: #10203f;
}

.readonly-roadmap-list {
  display: grid;
  gap: 12px;
}

.readonly-roadmap-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.readonly-roadmap-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.readonly-roadmap-title {
  font-size: 14px;
  font-weight: 800;
  color: #10203f;
}

.readonly-roadmap-status {
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  white-space: nowrap;
}

.readonly-roadmap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #62758f;
}

.readonly-roadmap-notes {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
}

.readonly-empty {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  color: #60728d;
  font-size: 13px;
  background: rgba(248, 250, 252, 0.86);
}

.comments-toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.comment-form-row {
  display: grid;
  gap: 12px;
}

.project-comments-list {
  display: grid;
  gap: 12px;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comments-actions {
  display: flex;
  justify-content: flex-end;
}

.comment-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(247, 250, 252, 0.94);
}

.comment-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.comment-item-meta {
  display: grid;
  gap: 4px;
}

.comment-item-author {
  font-size: 14px;
  font-weight: 800;
  color: #10203f;
  line-height: 1.4;
}

.comment-item-role {
  font-size: 12px;
  color: #62758f;
}

.comment-item-date {
  font-size: 12px;
  color: #62758f;
}

.comment-item-text {
  font-size: 14px;
  color: #22324f;
  line-height: 1.55;
  white-space: pre-wrap;
}

.comment-delete-button {
  flex: 0 0 auto;
  border: 1px solid rgba(190, 24, 93, 0.14);
  background: rgba(190, 24, 93, 0.08);
  color: #be123c;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.comment-delete-button:hover {
  transform: translateY(-1px);
  background: rgba(190, 24, 93, 0.12);
  border-color: rgba(190, 24, 93, 0.22);
}

.drawer-open {
  overflow: hidden;
}

.roadmap-item-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roadmap-remove-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.helper-text {
  min-height: 20px;
  font-size: 13px;
}

.table-scroll {
  overflow: auto;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .leadership-grid,
  .landing-support-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .landing-directions-main {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .landing-direction-column {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .landing-direction-column-left,
  .landing-direction-column-right,
  .landing-direction-center {
    grid-column: auto;
  }

  .landing-direction-center {
    width: 100%;
    min-height: 220px;
  }
}

@media (max-width: 860px) {
  .drawer-panel {
    border-radius: 0;
    padding: 20px 18px 32px;
  }

  .project-form {
    grid-template-columns: 1fr;
  }

  .project-form > :not(.project-side-upload),
  .project-edit-nav,
  .project-side-upload {
    grid-column: 1;
  }

  .project-edit-nav {
    position: static;
  }

  .project-side-upload {
    grid-row: auto;
    position: static;
  }

  .project-section-head {
    flex-direction: column;
  }

  .board-grid,
  .form-grid,
  .kpi-form-grid,
  .roadmap-item-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header {
    flex-direction: column;
  }

  .comments-toggle-row,
  .attachments-header,
  .home-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-cell {
    grid-template-columns: 1fr;
  }

  .project-cover-mini {
    width: 42px;
    max-width: 42px;
  }

  .attachment-card {
    grid-template-columns: 1fr;
  }

  .attachment-card-image {
    width: 100%;
    height: 120px;
  }

  .header-actions {
    width: 100%;
  }
}

.admin-card {
  display: grid;
  gap: 18px;
}

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

.admin-forms-column,
.admin-tables-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-form-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.subsection-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.subsection-header h4 {
  margin: 2px 0 0;
  font-size: 18px;
  color: var(--text);
}

.admin-role-form,
.admin-user-form {
  display: grid;
  gap: 14px;
}

.admin-role-form > label,
.admin-user-form > label {
  width: 100%;
}

.role-permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-directions-block {
  display: grid;
  gap: 10px;
}

.role-directions-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.role-directions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.checkbox-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.direction-checkbox {
  align-items: flex-start;
}

.direction-checkbox {
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.direction-checkbox.is-selected {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.direction-checkbox.is-selected span {
  color: #0b1730;
  font-weight: 700;
}

.users-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
}

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

.users-table th,
.users-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.roles-table th:nth-child(1),
.roles-table td:nth-child(1) {
  width: 28%;
}

.roles-table th:nth-child(2),
.roles-table td:nth-child(2) {
  width: 52%;
}

.roles-table th:nth-child(3),
.roles-table td:nth-child(3) {
  width: 20%;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) {
  width: 28%;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
  width: 22%;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
  width: 30%;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
  width: 20%;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
  width: 180px;
}

.users-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.users-name {
  font-weight: 700;
  color: var(--text);
}

.users-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-button {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.danger-button {
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.18);
  background: rgba(254, 242, 242, 0.95);
}

.danger-button:hover {
  background: rgba(254, 226, 226, 0.98);
  border-color: rgba(185, 28, 28, 0.26);
}

.investor-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.investor-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.investor-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.investor-logo {
  display: block;
  width: min(15%, 100%);
  height: auto;
  margin: 0 0 18px;
}

.investor-header h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.investor-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.investor-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.investor-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.investor-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

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

.investor-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.investor-sidebar-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.investor-direction-list {
  display: grid;
  gap: 8px;
}

.investor-direction-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 10px 12px;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.investor-direction-button:hover,
.investor-direction-button.active {
  border-color: rgba(11, 91, 211, 0.16);
  background: #edf4ff;
  color: #0b5bd3;
}

.investor-direction-button span {
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.investor-direction-button b {
  color: inherit;
  font-size: 12px;
}

.investor-project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
}

.investor-card-image,
.investor-detail-image {
  overflow: hidden;
  border-radius: 14px;
  background: #eef3fb;
}

.investor-card-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 20px 20px 0 0;
}

.investor-card-image img,
.investor-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.investor-card-logo,
.investor-detail-logo {
  object-fit: contain !important;
  padding: 24px;
}

.investor-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(11, 91, 211, 0.08), rgba(15, 23, 42, 0.04)),
    #eef3fb;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.investor-card-body {
  min-width: 0;
  padding: 16px;
}

.investor-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.investor-card-tags span {
  border-radius: 8px;
  background: #edf4ff;
  padding: 7px 10px;
  color: #0b5bd3;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.investor-project-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.2;
}

.investor-card-meta {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.investor-project-card p {
  margin: 10px 0 14px;
  color: #475467;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.investor-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.investor-card-metrics span {
  display: grid;
  gap: 2px;
  min-width: 82px;
  color: #667085;
  font-size: 11px;
}

.investor-card-metrics b {
  color: var(--text);
  font-size: 14px;
}

.investor-project-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.investor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.investor-modal-panel {
  position: relative;
  width: min(1440px, calc(100% - 20px));
  max-height: calc(100vh - 20px);
  margin: 10px auto;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 18px;
  background: #f6f7f9;
  padding: 10px;
}

.investor-modal-panel::-webkit-scrollbar {
  display: none;
}

.modal-close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 26px;
  cursor: pointer;
}

.investor-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  padding-right: 0;
}

.investor-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  padding: 0 4px 4px;
}

.investor-detail-main,
.investor-detail-side > section {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.investor-detail-main {
  padding: 22px 24px;
}

.investor-detail-hero {
  display: grid;
  grid-template-columns: minmax(380px, 1.08fr) minmax(0, 1.08fr);
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.investor-detail-image {
  aspect-ratio: 1.58 / 1;
}

.investor-detail-copy h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.investor-detail-territory {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  color: #667085;
  font-size: 14px;
  line-height: 1.35;
}

.investor-territory-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1.8px solid #0b5bd3;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.investor-territory-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0b5bd3;
  transform: translate(-50%, -50%);
}

.investor-detail-copy p,
.investor-detail-side p {
  color: #475467;
  font-size: 15px;
  line-height: 1.55;
}

.investor-detail-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.investor-stage-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.investor-detail-section {
  padding: 22px 4px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.investor-detail-section h3,
.investor-detail-bottom h3,
.investor-detail-side h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 18px;
}

.investor-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.investor-metrics-row div {
  min-height: 68px;
  padding: 12px 18px;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
}

.investor-metrics-row div:last-child {
  border-right: 0;
}

.investor-metrics-row strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.investor-metrics-row span {
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
}

.investor-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.investor-timeline div {
  border-top: 2px solid #d9dfe8;
  padding-top: 12px;
  text-align: center;
}

.investor-timeline strong {
  display: block;
  color: var(--primary);
  margin-bottom: 7px;
}

.investor-detail-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
}

.investor-detail-bottom section {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 18px;
}

.investor-detail ul,
.investor-detail-side ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 14px;
  line-height: 1.4;
}

.investor-detail li,
.investor-detail-side li {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.investor-detail-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  height: 100%;
}

.investor-detail-side > section {
  display: flex;
  flex-direction: column;
  padding: 22px;
  min-height: 0;
}

.investor-detail-side > section:last-child {
  justify-content: space-between;
}

.investor-stage-head {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.investor-stage-head h3 {
  margin: 0;
}

.investor-stage-head strong,
.investor-detail-side .investor-card-tags span {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 26px;
  border: 1px solid rgba(11, 91, 211, 0.16);
  border-radius: 8px;
  background: #e8f0ff;
  padding: 6px 10px;
  color: #0b5bd3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.investor-stage-head strong {
  margin: 0;
}

.investor-territory {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.investor-territory h3 {
  margin: 0;
}

.investor-territory-grid {
  display: grid;
  gap: 10px;
}

.investor-territory-grid div {
  display: grid;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 11px 12px;
}

.investor-territory-grid span {
  color: #667085;
  font-size: 12px;
}

.investor-territory-grid strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
}

.investor-detail-side .investor-card-tags span {
  text-transform: uppercase;
}

.investor-side-divider {
  height: 1px;
  margin: 24px 0;
  background: rgba(148, 163, 184, 0.3);
}

.investor-material-note {
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill-active {
  background: rgba(15, 159, 140, 0.12);
  color: var(--success);
}

.status-pill-inactive {
  background: rgba(194, 65, 90, 0.12);
  color: var(--danger);
}

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

  .direction-lead-card-shell {
    position: static;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .role-permissions-grid,
  .role-directions-grid {
    grid-template-columns: 1fr;
  }
}

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

  .investor-detail-side {
    grid-template-rows: auto;
    height: auto;
  }
}

@media (max-width: 860px) {
  .investor-shell {
    width: min(100% - 20px, 1360px);
    padding-top: 16px;
  }

  .investor-header {
    display: grid;
  }

  .investor-toolbar,
  .investor-layout,
  .investor-detail-hero,
  .investor-detail-bottom {
    grid-template-columns: 1fr;
  }

  .investor-sidebar {
    position: static;
  }

  .investor-project-card {
    grid-template-columns: 1fr;
  }

  .investor-card-image {
    aspect-ratio: 1.58 / 1;
  }

  .investor-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investor-metrics-row div {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  }

  .investor-modal-panel {
    width: min(100% - 12px, 1440px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    padding: 8px;
  }

  .modal-close-button {
    top: 14px;
    right: 14px;
  }

  .investor-timeline {
    grid-template-columns: 1fr;
  }
}
