:root {
  color-scheme: light;
  font: 15px/1.5 system-ui, sans-serif;
  --ink: #191c16;
  --muted: #5d655a;
  --line: #dce2d8;
  --paper: #f2f5ef;
  --accent: #dcf778;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.workspace { display: grid; grid-template-columns: 224px minmax(0, 1fr); }
a { color: inherit; text-decoration: none; }
.sidebar { display: flex; flex-direction: column; padding: 20px 16px; color: #f5f7ee; background: #1b2119; }
.workspace .sidebar { position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; width: fit-content; border-radius: 12px; background: #1c1c1c; }
.brand img { display: block; }
.brand-type { position: relative; width: 104px; height: 54px; overflow: hidden; border-radius: inherit; }
.brand-type img { position: absolute; left: -38px; top: -60px; max-width: none; }
nav { margin-top: 44px; }
.sidebar-label { margin: 0 0 10px 10px; color: #b9c3b2; font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: #d6dfd2; }
nav a span { font-size: 1.15rem; line-height: 1; }
nav a:hover, nav a[aria-current] { background: #333e2f; color: #ecffb0; }
.account { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid #414a3d; font-size: .82rem; }
.account button { display: block; padding: 0; border: 0; color: #c8d0c4; font-size: .78rem; }
.account button:hover { text-decoration: underline; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(18px, 4vw, 46px); border-bottom: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .83rem; }
.slash { padding: 0 6px; color: #788274; }
.private { display: inline-flex; gap: 7px; align-items: center; }
.private i { width: 7px; height: 7px; border-radius: 50%; background: #528c3d; }
.content { max-width: 1440px; margin: auto; padding: clamp(20px, 4vw, 46px); }
.heading, .contact, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.heading { margin-bottom: 24px; }
h1, h2, h3 { font-family: system-ui, sans-serif; letter-spacing: -.045em; }
h1 { font-size: clamp(2.7rem, 6vw, 4.75rem); line-height: .98; margin: 8px 0 0; overflow-wrap: anywhere; }
h2 { margin: 0 0 16px; font-size: 1.65rem; line-height: 1.1; }
h3 { font-size: 1.45rem; line-height: 1.15; }
.section-heading { margin-bottom: 12px; }
.section-heading h2 { margin: 0; }
.subtitle { color: var(--muted); margin: 12px 0 0; overflow-wrap: anywhere; }
.eyebrow { color: #505e49; text-transform: uppercase; font-size: .69rem; font-weight: 800; letter-spacing: .14em; margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.metrics div { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.metrics div:first-child { background: var(--accent); border-color: #bcd75e; }
.metrics strong { display: block; font: 700 2.25rem/1 system-ui, sans-serif; }
.metrics span { display: block; font-size: .74rem; margin-top: 7px; overflow-wrap: anywhere; }
.columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 16px; }
section { padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; scroll-margin-top: 15px; }
.contact, article { border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.contact:hover strong { text-decoration: underline; }
.badge { display: inline-block; border-radius: 50px; padding: 3px 9px; background: #eef3e9; color: #3c5336; font-size: .74rem; font-weight: 650; }
.muted, .contact small { color: var(--muted); }
.contact small { display: block; }
.empty { padding: 22px 16px; background: #f5f7f3; border-radius: 10px; }
.empty p { color: var(--muted); margin: 5px 0 10px; }
.empty a, .back { color: #3b622f; font-weight: 750; }
form label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 13px; }
input:not([type=checkbox]), textarea { display: block; width: 100%; padding: 9px 10px; margin-top: 5px; border: 1px solid #c5cdc1; border-radius: 7px; background: #fff; font: inherit; }
textarea { resize: vertical; }
button { padding: 8px 12px; border: 1px solid #283423; border-radius: 7px; color: #fff; background: #283423; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
button:hover { background: #3d5037; }
button.quiet { background: transparent; color: inherit; }
:focus-visible { outline: 3px solid #758c3d; outline-offset: 3px; }
.auth .sidebar { padding-inline: clamp(18px, 4vw, 46px); }
.login { max-width: 420px; margin: 5vh auto; }
.login form { margin-top: 22px; }
.notice { background: #ebf7bc; border: 1px solid #d1e39a; border-radius: 9px; padding: 10px 14px; }
.message { white-space: pre-wrap; }
@media (max-width: 1120px) { .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 850px) {
  .workspace { display: block; }
  .workspace .sidebar { position: static; height: auto; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 0; }
  .sidebar-label { display: none; }
  .account { margin-top: 12px; }
}
@media (max-width: 620px) {
  .columns { grid-template-columns: 1fr; }
  .metrics div { padding: 10px; }
}
.lead-fields { display: grid; grid-template-columns: 1fr .7fr 1.4fr; gap: 12px; }
.lead-fields select { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #c5cdc1; border-radius: 7px; background: #fff; font: inherit; }
.lead-search button:disabled { opacity: .55; cursor: default; }
details form { margin-top: 12px; max-width: 420px; }
summary { cursor: pointer; }
@media (max-width: 620px) { .lead-fields { grid-template-columns: 1fr; gap: 0; } }
.lead-results-heading { margin: 25px 0 12px; }
.lead-insight, .lead-question { padding: 12px; border-radius: 9px; background: #f3f6ef; }
.lead-question { background: #f8f9f6; }
.lead-contact { margin-top: auto; border-top: 1px solid var(--line); padding-top: 13px; }
.lead-contact summary { font-weight: 750; }
.lead-contact form { max-width: none; }
.lead-tabs { display: flex; gap: 6px; margin: 0 0 16px; }
.lead-tabs a { color: var(--muted); font-weight: 700; }
.lead-tabs a:hover, .lead-tabs a[aria-current] { background: #e1ead9; color: #283423; }
.lead-save button { border-color: #c5cdc1; }
.lead-save button:hover { background: #eef3e9; }
.lead-list { display: grid; gap: 8px; }
.lead-row { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lead-summary { display: grid; grid-template-columns: 1.05fr 1.1fr 1.2fr auto; align-items: start; gap: 16px; padding: 16px; list-style: none; }
.lead-summary::-webkit-details-marker { display: none; }
.lead-summary span { display: block; }
.lead-summary .lead-approach { display: inline-block; }
.lead-summary .fit-high { background: #dcf778; color: #263923; }
.lead-summary .eyebrow { margin-bottom: 4px; }
.lead-identity strong { display: block; font-size: 1.02rem; }
.lead-identity .muted { margin-top: 3px; font-size: .78rem; }
.lead-chevron { font-size: 1.3rem; line-height: 1; }
.lead-row[open] .lead-chevron { transform: rotate(180deg); }
.lead-row-body { display: grid; gap: 12px; padding: 16px; border-top: 1px solid var(--line); }
.lead-row-body p, .lead-row-body h3 { margin: 0; }
.lead-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.lead-checks .eyebrow { margin-bottom: 4px; }
.lead-insight p + p, .lead-question p + p { margin-top: 5px; }
.lead-progress progress { width: min(100%, 480px); accent-color: #597e36; }
.lead-progress p { margin-bottom: 5px; }
@media (max-width: 760px) {
  .lead-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .lead-summary > span:not(.lead-chevron) { grid-column: 1; }
  .lead-chevron { grid-column: 2; grid-row: 1; }
}
