:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #1a2328;
  background: #aabac0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(78, 103, 112, 0.38), rgba(95, 116, 123, 0.38)),
    url("/strata-curves-light-v3.webp") center 45% / cover fixed;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
p {
  margin: 0;
}
.topbar {
  min-height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(224, 231, 230, 0.78);
  border-bottom: 1px solid rgba(214, 224, 223, 0.85);
  backdrop-filter: blur(24px) saturate(110%);
}
.brand {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #1b365d;
}
.small {
  font-size: 12px;
}
.subtle {
  color: #64748b;
  font-size: 14px;
}
.prototype-badge {
  background: #f7eddc;
  color: #7b541c;
  border: 1px solid #b37b284d;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}
.shell {
  display: flex;
  min-height: calc(100vh - 64px);
}
.sidebar {
  width: 224px;
  flex: none;
  padding: 16px;
  background: rgba(224, 231, 230, 0.78);
  border-right: 1px solid #d6e0df;
  backdrop-filter: blur(24px);
}
.nav-label {
  padding: 0 12px;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav button {
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  text-align: left;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}
.sidebar nav button span {
  margin-left: 12px;
}
.sidebar nav button[aria-current="page"] {
  background: #e8f2f2;
  color: #2f6468;
}
.simple {
  margin-top: 32px;
  padding: 16px;
  background: #f7f4ed;
  border-radius: 16px;
  font-size: 14px;
  color: #1b365d;
}
.simple p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
  margin-top: 4px;
}
main {
  min-width: 0;
  flex: 1;
  padding: 32px;
  max-width: 1664px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 14px;
  color: #40868b;
  font-weight: 600;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.025em;
  margin: 4px 0 8px;
}
h2 {
  font-size: 16px;
}
.actions {
  display: flex;
  gap: 8px;
}
.secondary,
.primary {
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
}
.secondary {
  background: white;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.primary {
  border: 1px solid #40868b;
  background: #40868b;
  color: white;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: 20px;
}
.card {
  border: 1px solid rgba(226, 233, 231, 0.9);
  background: rgba(235, 240, 238, 0.88);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 14px 38px rgba(26, 63, 92, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.card-heading p {
  margin-top: 4px;
}
.search input,
input,
select {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  color: #1a2328;
  max-width: 100%;
}
.search input {
  width: 224px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
  font-size: 14px;
}
th {
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.04em;
  font-size: 12px;
}
td {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}
tr[data-id] {
  cursor: pointer;
}
tr[data-id]:hover,
tr.selected {
  background: #f2f8f8;
}
.pill {
  background: #e8f2f2;
  color: #2f6468;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.relationship-panel {
  height: 176px;
  padding: 16px;
  background-color: #f7faf9;
  background-image: radial-gradient(#edf4f4 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: #64748b;
  font-size: 14px;
  overflow: auto;
}
.profile-button {
  margin-top: 12px;
}
.detail-list {
  padding-left: 20px;
  color: #475569;
  font-size: 14px;
}
.detail-list li {
  margin: 8px 0;
}
.activity-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-list button {
  margin-left: 8px;
}
#contact-dialog,
#event-dialog,
#opportunity-dialog {
  max-height: 90vh;
  overflow-y: auto;
}
#contact-dialog h3,
#event-dialog h3,
#opportunity-dialog h3 {
  font-size: 14px;
  margin: 20px 0 8px;
}
.side-cards {
  display: grid;
  gap: 20px;
  align-content: start;
}
.next-card {
  border-radius: 16px;
  background: #1b365d;
  color: white;
  padding: 20px;
  box-shadow: 0 5px 14px #1b365d1a;
}
.next-card p {
  color: #cbd5e1;
  font-size: 14px;
}
.next-card h2 {
  font-size: 20px;
  margin: 8px 0;
}
.next-card button {
  margin-top: 16px;
  color: #1b365d;
}
.empty {
  padding: 20px 0;
  color: #64748b;
  font-size: 14px;
}
.add-record {
  margin-top: 16px;
  color: #2f6468;
  font-size: 14px;
}
.add-record summary {
  cursor: pointer;
  font-weight: 700;
}
form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
dialog {
  border: 0;
  border-radius: 16px;
  max-width: 500px;
  width: calc(100% - 32px);
  padding: 24px;
  box-shadow: 0 20px 60px #0f172a55;
}
dialog::backdrop {
  background: #0f172a59;
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.icon-button {
  background: none;
  border: 0;
  font-size: 24px;
  color: #64748b;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
#notice:not(:empty) {
  padding: 8px 0;
  color: #245a54;
}
@media (max-width: 1000px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 180px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    width: auto;
    padding: 8px;
    overflow: auto;
  }
  .sidebar nav {
    display: flex;
  }
  .sidebar nav button {
    white-space: nowrap;
  }
  .sidebar .nav-label,
  .simple {
    display: none;
  }
  main {
    padding: 20px;
  }
  .title-row {
    align-items: start;
    flex-direction: column;
  }
  .topbar {
    padding: 0 20px;
  }
  .prototype-badge {
    font-size: 10px;
  }
}
