:root {
  --bg: #f6f7f9;
  --text: #1f2933;
  --muted: #667085;
  --brand: #1f4f46;
  --brand-dark: #153a33;
  --card: #ffffff;
  --border: #d0d5dd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}

h1 {
  margin: 0;
  color: var(--brand);
}

nav a {
  margin-left: 20px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  padding: 48px 0 28px;
}

.hero h2 {
  font-size: 36px;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  padding-bottom: 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.card h3 {
  margin-top: 0;
}

.company {
  color: var(--muted);
  font-weight: 600;
}

.button {
  display: inline-block;
  margin-top: 12px;
  background: var(--brand);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-dark);
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
}

.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin: 48px 0 60px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.detail-card h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.headline {
  font-size: 20px;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.facts div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #fafafa;
}

.facts dt {
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.facts dd {
  margin: 0;
  font-size: 18px;
}

.content-block {
  line-height: 1.7;
  font-size: 17px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 60px;
}

.editor-panel,
.preview-panel {
  min-width: 0;
}

.muted {
  color: var(--muted);
}

form label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

button {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--brand-dark);
}

.status {
  margin-top: 18px;
  font-weight: 700;
}

#file-list {
  padding-left: 18px;
}

#file-list li {
  margin: 10px 0;
}

#file-list button {
  margin-left: 10px;
  padding: 6px 10px;
}

@media (max-width: 850px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}

.documents-box {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: #fafafa;
}

.documents-box h3 {
  margin-top: 0;
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.documents-table th,
.documents-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.documents-table th {
  color: var(--muted);
  font-size: 14px;
}

.documents-table button {
  padding: 7px 10px;
}

.header-row nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-row nav a {
  margin-left: 0;
}

.user-email {
  color: var(--muted);
  font-size: 14px;
}

.nav-button {
  padding: 7px 10px;
  font-size: 14px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.access-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.access-card h3 {
  margin-top: 0;
  font-size: 24px;
}

.muted-card {
  opacity: 0.8;
}

.secondary-button {
  background: white;
  color: var(--brand);
  border: 1px solid var(--brand);
  margin-left: 8px;
}

.secondary-button:hover {
  background: #eef5f3;
}

.empty-state,
.table-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 60px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.opportunities-table {
  width: 100%;
  border-collapse: collapse;
}

.opportunities-table th,
.opportunities-table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
}

.opportunities-table th {
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  display: inline-block;
  background: #eef5f3;
  color: var(--brand);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.small-button {
  padding: 7px 10px;
  font-size: 13px;
  margin-right: 6px;
}


@media (max-width: 1050px) {
  .access-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .access-grid {
    grid-template-columns: 1fr;
  }

  .opportunities-table {
    font-size: 14px;
  }
}

.progress-box {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 16px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand);
}

.commit-box {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.commit-box input {
  margin-right: 10px;
  padding: 6px;
}

.opportunity-content h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.short-description {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 24px;
}

.commitment-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.commitment-grid {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

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

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

.commitment-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.commitment-card h3 {
  margin-top: 0;
}

.commitment-card input {
  width: 100%;
  margin: 8px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.commitment-list {
  padding-left: 18px;
}

.commitment-list li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .investor-grid,
  .investee-grid {
    grid-template-columns: 1fr;
  }
}

.site-menu {
  display: block;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 8px;
  font-size: 15px;
}

.site-menu a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs {
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  background: white;
}
\n
/* Vertical card action buttons */
.card-actions-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
}

.card-actions-vertical sl-button {
  display: block;
}


/* Dealflow MVP */
.dealflow-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.dealflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.dealflow-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.dealflow-card h3,
.dealflow-card h4 {
  margin-top: 0;
}

.dealflow-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #fff;
}

.dealflow-table th,
.dealflow-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

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

.dealflow-address-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dealflow-address-result {
  text-align: left;
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
