:root {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #fafaf7;
  color: #14110d;
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
a {
  color: #8a4b1a;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px 80px;
}
header.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
header.hero h1 {
  font-size: 20px;
  margin: 0 0 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
header.hero .sub {
  color: #6b6356;
  font-size: 13px;
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.current-user {
  color: #6b6356;
  font-size: 12px;
  white-space: nowrap;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0 16px;
}
.kpi {
  background: #fff;
  border: 1px solid #e8e2d5;
  border-radius: 10px;
  padding: 10px 12px;
}
.kpi .label {
  font-size: 11px;
  color: #847a6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi .value {
  font-size: 22px;
  font-weight: 600;
  color: #14110d;
  margin-top: 2px;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.toolbar input,
.toolbar select {
  background: #fff;
  border: 1px solid #ddd5c5;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: #14110d;
  outline: none;
}
.toolbar input:focus,
.toolbar select:focus {
  border-color: #b78a4e;
}
.toolbar input[type="search"] {
  flex: 1;
  min-width: 180px;
}
.btn {
  background: #14110d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover {
  background: #2b2620;
}
.btn.secondary {
  background: #fff;
  color: #14110d;
  border: 1px solid #ddd5c5;
}
.btn.secondary:hover {
  background: #f3eee2;
}
.btn.ghost {
  background: transparent;
  color: #6b6356;
  border: none;
  padding: 6px 8px;
}
.btn.ghost:hover {
  color: #14110d;
}
.btn.tiny {
  padding: 4px 9px;
  font-size: 12px;
  border-radius: 6px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e8e2d5;
  border-radius: 12px;
  overflow: hidden;
}
thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #847a6b;
  background: #f6f1e4;
  padding: 9px 12px;
  border-bottom: 1px solid #e8e2d5;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
thead th:hover {
  color: #14110d;
}
tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #efe9da;
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr.lead-row {
  cursor: pointer;
}
tbody tr.lead-row:hover {
  background: #faf6ea;
}
tbody tr.lead-row.open {
  background: #f6f1e4;
}
.company {
  font-weight: 600;
  color: #14110d;
}
.industry {
  color: #6b6356;
  font-size: 12px;
  margin-top: 2px;
}
.signals {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.sig {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  font-weight: 500;
}
.sig.program {
  background: #e8f0e3;
  border-color: #c5d9b6;
  color: #3d5a25;
}
.sig.hiring {
  background: #e6efff;
  border-color: #b8cdee;
  color: #1d3f7a;
}
.sig.press {
  background: #f6e6e2;
  border-color: #e1b9ad;
  color: #843820;
}
.sig.tech {
  background: #ecdbf6;
  border-color: #c7a9dd;
  color: #5a2876;
}
.sig.regulated {
  background: #fbecc1;
  border-color: #d8b864;
  color: #6b4a08;
}
.sig.funding {
  background: #d5f0e2;
  border-color: #8cc7a6;
  color: #1c5a36;
}
.sig.customer_pressure {
  background: #fde3d3;
  border-color: #e0a37c;
  color: #7a2f08;
}
.evidence-date {
  font-size: 10.5px;
  color: #847a6b;
  background: #f6f1e4;
  padding: 1px 6px;
  border-radius: 999px;
  margin-right: 6px;
  white-space: nowrap;
}
.score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
}
.score .bar {
  width: 36px;
  height: 6px;
  background: #ece4d2;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.score .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, #c9a861, #8a4b1a);
  border-radius: 3px;
}
.status-pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.status-new {
  background: #ece4d2;
  color: #5b4d2d;
}
.status-researched {
  background: #d9e6f5;
  color: #1d3f7a;
}
.status-drafted {
  background: #f6e6c1;
  color: #6b4a08;
}
.status-sent {
  background: #e1d5f6;
  color: #4a2876;
}
.status-replied {
  background: #d3ecd0;
  color: #2d6322;
}
.status-meeting {
  background: #c5e7dd;
  color: #1a5645;
}
.status-closed {
  background: #cccccc;
  color: #3a3a3a;
}
.status-dead {
  background: #f5d3d3;
  color: #7a1d1d;
}
.detail {
  background: #fff;
  border: 1px solid #e8e2d5;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 18px 22px;
}
.detail h3 {
  font-size: 13px;
  margin: 0 0 8px;
  color: #14110d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.detail h4 {
  font-size: 13px;
  margin: 14px 0 6px;
}
.detail .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.evidence {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}
.evidence li {
  padding: 7px 10px;
  border-left: 2px solid #c9a861;
  background: #faf6ea;
  margin-bottom: 6px;
  border-radius: 0 6px 6px 0;
}
.evidence .src {
  font-size: 11px;
  color: #847a6b;
  margin-top: 2px;
}
.angle-card {
  background: #faf6ea;
  border: 1px solid #e8e2d5;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.12s;
}
.angle-card:hover {
  background: #f6efe0;
  border-color: #c9a861;
}
.angle-card.selected {
  background: #f1e8d0;
  border-color: #8a4b1a;
}
.angle-card .a-title {
  font-weight: 600;
  font-size: 13px;
}
.angle-card .a-body {
  font-size: 12px;
  color: #574e40;
  margin-top: 4px;
}
.email-box {
  background: #fff;
  border: 1px solid #ddd5c5;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.email-box .field {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f0eadd;
  font-size: 13px;
}
.email-box .field:last-of-type {
  border-bottom: none;
}
.email-box .field label {
  width: 60px;
  color: #847a6b;
  font-size: 12px;
}
.email-box .field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: #14110d;
  background: transparent;
}
.email-body {
  width: 100%;
  min-height: 240px;
  border: none;
  outline: none;
  padding: 10px 0 0;
  font-family: inherit;
  font-size: 13px;
  color: #14110d;
  resize: vertical;
  background: transparent;
}
.notes {
  width: 100%;
  min-height: 70px;
  border: 1px solid #ddd5c5;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  outline: none;
}
.notes:focus {
  border-color: #b78a4e;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #14110d;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
  z-index: 100;
}
.toast.show {
  opacity: 1;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 13, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-backdrop.show {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  width: min(520px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.modal h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}
.modal label {
  display: block;
  font-size: 12px;
  color: #574e40;
  margin: 10px 0 4px;
}
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  border: 1px solid #ddd5c5;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.modal textarea {
  min-height: 60px;
  resize: vertical;
}
.modal .row {
  display: flex;
  gap: 10px;
}
.modal .row > div {
  flex: 1;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.muted {
  color: #847a6b;
  font-size: 12px;
}
.empty {
  text-align: center;
  color: #847a6b;
  padding: 40px 20px;
  font-size: 13px;
}
.signal-help {
  font-size: 11px;
  color: #847a6b;
  margin-top: 4px;
}
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ddd5c5;
  border-top-color: #14110d;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 4px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.tag-row {
  display: flex;
  gap: 6px;
  margin: 4px 0 12px;
  flex-wrap: wrap;
}
.filter-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #ddd5c5;
  background: #fff;
  cursor: pointer;
  color: #574e40;
}
.filter-chip.on {
  background: #14110d;
  color: #fff;
  border-color: #14110d;
}
.votes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vote-person {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.vote-person .vname {
  width: 60px;
  color: #574e40;
}
.vote-btn {
  border: 1px solid #ddd5c5;
  background: #fff;
  border-radius: 6px;
  padding: 3px 9px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.vote-btn:hover {
  background: #f3eee2;
}
.vote-btn.up.on {
  background: #d3ecd0;
  border-color: #2d6322;
}
.vote-btn.down.on {
  background: #f5d3d3;
  border-color: #7a1d1d;
}
.vote-tally {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f6f1e4;
  color: #574e40;
  border: 1px solid #e8e2d5;
  margin-left: 6px;
  white-space: nowrap;
}
.vote-summary {
  font-size: 12px;
  color: #574e40;
  display: grid;
  gap: 3px;
}
.notes-list {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.note-item {
  background: #faf6ea;
  border: 1px solid #e8e2d5;
  border-radius: 8px;
  padding: 8px 10px;
}
.note-meta {
  color: #847a6b;
  font-size: 11px;
  margin-bottom: 4px;
}
.note-body {
  color: #14110d;
  font-size: 13px;
  white-space: pre-wrap;
}
.note-actions {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}
.users-list {
  display: grid;
  gap: 8px;
}
.user-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e8e2d5;
  border-radius: 8px;
  padding: 9px 10px;
  background: #faf6ea;
}
.user-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.user-role-control {
  display: grid;
  gap: 3px;
  min-width: 128px;
}
.user-role-control span {
  color: #847a6b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.user-role-control select {
  min-height: 30px;
  border: 1px solid #ddd5c5;
  border-radius: 8px;
  background: #fff;
  color: #14110d;
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    linear-gradient(180deg, rgba(21, 224, 181, 0.08), rgba(36, 168, 255, 0)),
    #f7f8f7;
}
.auth-shell {
  width: min(940px, calc(100vw - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(340px, 420px);
  gap: 44px;
  align-items: center;
  padding: 42px 0;
}
.auth-brand {
  display: grid;
  gap: 28px;
  align-content: center;
  color: #14110d;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(18, 189, 161, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(21, 33, 36, 0.08);
  backdrop-filter: blur(10px);
}
.brand-symbol {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(36, 168, 255, 0.22);
  border-radius: 15px;
  background: #fff;
  flex: 0 0 auto;
}
.brand-symbol img {
  position: absolute;
  top: -2px;
  left: -32px;
  width: auto;
  max-width: none;
  height: 80px;
}
.brand-wordmark {
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.035em;
}
.brand-copy {
  display: grid;
  gap: 10px;
  max-width: 380px;
}
.brand-copy p {
  margin: 0;
  color: #4d554f;
  font-size: 16px;
}
.brand-kicker {
  color: #155b66 !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-card {
  background: #fff;
  border: 1px solid #dde7e2;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 18px 44px rgba(21, 33, 36, 0.12);
}
.auth-product-header {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf2ef;
}
.auth-product-header h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}
.auth-product-header p {
  margin: 0;
  color: #52605a;
  font-size: 15px;
}
.auth-card-header {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}
.auth-card-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}
.auth-card-header p {
  margin: 0;
  color: #5b645f;
}
.auth-form {
  display: grid;
  gap: 16px;
}
.field-group {
  display: grid;
  gap: 7px;
}
.field-group label {
  color: #26312d;
  font-size: 13px;
  font-weight: 600;
}
.field-group input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cdd8d2;
  border-radius: 8px;
  padding: 10px 12px;
  color: #14110d;
  background: #fff;
  font: inherit;
}
.field-group input:focus {
  border-color: #12bda1;
  box-shadow: 0 0 0 3px rgba(18, 189, 161, 0.18);
  outline: none;
}
.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #cdd8d2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.password-field:focus-within {
  border-color: #12bda1;
  box-shadow: 0 0 0 3px rgba(18, 189, 161, 0.18);
}
.password-field input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.password-field input:focus {
  box-shadow: none;
}
.password-toggle {
  width: 44px;
  min-width: 44px;
  height: 100%;
  border: 0;
  border-left: 1px solid #e2ebe7;
  background: #f6faf8;
  color: #155b66;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: #eaf8f4;
  outline: none;
}
.password-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(18, 189, 161, 0.36);
}
.password-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
.auth-primary {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  background: #14110d;
  border-color: #14110d;
  color: #fff;
  font-weight: 700;
}
.auth-primary:hover:not(:disabled),
.auth-primary:focus-visible {
  background: #1f3534;
  border-color: #1f3534;
}
.auth-primary:disabled {
  cursor: progress;
  opacity: 0.68;
}
.auth-form .ghost {
  width: 100%;
  min-height: 40px;
  justify-content: center;
}
.auth-loading,
.auth-status,
.form-error,
.caps-warning {
  font-size: 13px;
}
.auth-loading {
  color: #4d554f;
}
.auth-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: #155b66;
}
.form-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #7a1d1d;
}
.caps-warning {
  margin: 0;
  color: #945b00;
}
.password-requirements {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dde7e2;
  border-radius: 8px;
  background: #f8fbfa;
  color: #58645e;
  list-style: none;
}
.password-requirements li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.password-requirements li::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid #aab7b1;
  border-radius: 999px;
  background: #fff;
  flex: 0 0 auto;
}
.password-requirements li[data-met="true"] {
  color: #0f6d5d;
}
.password-requirements li[data-met="true"]::before {
  border-color: #12bda1;
  background: #12bda1;
}
.auth-footer {
  padding: 0 20px 22px;
  color: #66716c;
  font-size: 12px;
  text-align: center;
}
.auth-card [hidden],
.auth-shell [hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .auth-shell {
    width: min(440px, calc(100vw - 28px));
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 20px;
  }
  .auth-brand {
    gap: 18px;
    justify-items: center;
    text-align: center;
  }
  .brand-lockup {
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
  }
  .brand-symbol {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .brand-symbol img {
    top: -2px;
    left: -27px;
    height: 68px;
  }
  .brand-wordmark {
    font-size: 20px;
  }
  .brand-copy {
    max-width: 340px;
  }
  .brand-copy p {
    font-size: 14px;
  }
  .auth-card {
    padding: 22px;
  }
  .auth-product-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }
  .auth-product-header h1 {
    font-size: 28px;
  }
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail .grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .user-row {
    flex-direction: column;
  }
}
