:root { color-scheme: light; --ink: #202e25; --muted: #526050; --line: #dbe1d4; --paper: #fbfcf7; --row-hover: #e0ecdf; --canvas: #f0f3eb; --green: #205e43; --green-deep: #164630; --warn: #884621; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.5 'Avenir Next', Avenir, system-ui, sans-serif; }
header { padding: .9rem max(1.25rem, calc((100% - 72rem)/2)); background: #192f25; color: #f8faf4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header a { color: inherit; }
.brand { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
nav, .actions, .search, .heading { display: flex; align-items: center; gap: 1rem; }
header nav { flex-wrap: wrap; gap: .45rem 1.4rem; }
@media (max-width: 520px) { header nav { column-gap: 1rem; } }
header .brand, header nav a, header .quiet { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.brand-mascot { display: block; flex: none; }
.nav-icon { width: 1em; height: 1em; flex: none; }
main { max-width: 74.5rem; margin: 0 auto; padding: 2.25rem 1.25rem; }
a { color: var(--green-deep); text-decoration: none; text-underline-offset: .18em; }
a:where(:not(.button, .brand, .record-row-link)):hover { text-decoration: underline; }
main a:where(:not(.button)) { font-weight: 650; }
h1, h2, p { margin: 0; }
h1 { font: 700 clamp(2rem, 5vw, 3.25rem)/1.08 Georgia, serif; letter-spacing: -.035em; }
h2 { font-size: 1.15rem; margin-bottom: .85rem; }
.heading { justify-content: space-between; margin-bottom: 1.4rem; flex-wrap: wrap; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; padding: 1.35rem; }
.card.narrow { max-width: 35rem; }
.empty { padding: 2.5rem; }
.button, button { display: inline-flex; justify-content: center; align-items: center; background: var(--paper); color: var(--ink); border: 1px solid #aab7a7; border-radius: .5rem; padding: .58rem .85rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: #e2eade; }
.primary { color: #fff; background: var(--green); border-color: var(--green); }
.primary:hover { background: var(--green-deep); }
.quiet { background: transparent; color: inherit; border: 0; padding: .25rem; font-weight: 500; }
.quiet:hover { background: #355348; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-bottom: 1rem; }
.metrics div {
  padding: .85rem 1.1rem;
  background: var(--paper);
  border: 1px solid #cdd6c1;
  border-top: .25rem solid #6a7958;
  border-radius: .9rem;
}
.metrics strong, .metrics span, small { display: block; }
.metrics strong { color: var(--ink); font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.metrics span { color: var(--muted); font-weight: 600; }
small, .meta { color: var(--muted); }
.meta { margin-top: .35rem; }
.stage { display: inline-block; border-radius: 2rem; padding: .15rem .6rem; font-size: .84rem; background: #e6e9e0; }
.stage.won { color: #174c30; background: #d9eddd; }
.stage.lost, .overdue { color: var(--warn); }
.stage.nurture { color: #4f4770; background: #ede8f4; }
.table-wrap { overflow-x: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .85rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #eaf0e5; font-weight: 650; font-size: .9rem; white-space: nowrap; }
tbody tr:last-child td { border: 0; }
.fields, fieldset, .pair { display: grid; gap: .85rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { color: var(--ink); opacity: 1; }
.fields button { justify-self: start; }
label { display: grid; gap: .25rem; font-weight: 600; }
input, select, textarea { font: inherit; font-weight: 400; min-width: 0; width: 100%; padding: .58rem .65rem; color: var(--ink); background: white; border: 1px solid #aab7a7; border-radius: .42rem; }
select {
  appearance: none;
  padding-inline-end: 2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%, var(--muted) 70%, transparent 70%),
    linear-gradient(135deg, transparent 30%, var(--muted) 30%, var(--muted) 50%, transparent 50%);
  background-position: right calc(.85rem + 5px) center, right .85rem center;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}
@media (forced-colors: active) {
  select { appearance: auto; padding-inline-end: .65rem; background-image: none; }
}
:focus-visible { outline: 2px solid #3a8162; outline-offset: 2px; }
.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.back { display: inline-block; margin-bottom: .9rem; }
.search { align-items: end; }
.search label { flex: 1; }
.company-list, .activity { list-style: none; padding: 0; margin: 1rem 0; }
.company-list li, .activity li { border-top: 1px solid var(--line); padding: .7rem 0; }
.compact-record-list, .record-tab-list { padding-bottom: .65rem; }
.compact-record-list > .company-list { margin-bottom: 0; }
.activity p { white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { background: #fff1dd; border: 1px solid #dfc29b; padding: .7rem 1rem; border-radius: .5rem; margin-bottom: 1rem; }
.trial-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; }
.trial-banner p { margin-top: .15rem; }
.trial-active { background: #e7efe3; border-color: #cadac6; }
.trial-enrollment { border-block: 1px solid var(--line); padding-block: 1rem; margin-block: 1rem; }
.trial-enrollment h2 { margin-bottom: .35rem; }
.trial-enrollment p { margin-bottom: .75rem; }
.trial-enrollment .actions { flex-wrap: wrap; }
dt { font-weight: 650; }
dd { margin: 0 0 .85rem; overflow-wrap: anywhere; }
@media (max-width: 680px) { .detail-grid { grid-template-columns: 1fr; } header { flex-wrap: wrap; } th, td { padding: .65rem; } .metrics div { padding: .55rem; } }
.catalog-entry { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.checkbox { display: flex; align-items: center; gap: .55rem; }
.checkbox input { width: auto; }
.company-suggestions { padding: .75rem .9rem 0; background: #eaf0e5; border-radius: .5rem; }
.company-suggestions .company-list { margin-bottom: 0; }
#suggestion-status:empty { display: none; }
.sign-in-layout {
  display: grid;
  grid-template-columns: minmax(0, 35rem) minmax(0, 27rem);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}
.sign-in-art { display: block; width: 100%; height: auto; max-width: 27rem; border-radius: .9rem; }
.sign-in-form { margin-top: 1.25rem; }
.sign-in-form button { justify-self: stretch; }
.sign-in-hint { margin-top: .7rem; }
.sign-in-options { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: 1rem; }
@media (max-width: 740px) { .sign-in-layout { grid-template-columns: minmax(0, 35rem); } }
.admin-user-options { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: 1rem; }
.admin-user-options summary { color: var(--green-deep); cursor: pointer; }
.admin-user-options[open] > summary { margin-bottom: 1rem; }
.required-mark { display: none; }
label:has(> :required) .required-mark {
  display: inline-block;
  margin-inline-start: .4rem;
  color: var(--warn);
  font-size: .76em;
  font-weight: 650;
}
button:disabled, button:disabled:hover {
  background: #e8ece3;
  border-color: #cbd2c5;
  color: #576357;
  cursor: not-allowed;
}
.section-tabs {
  flex-wrap: wrap;
  gap: .25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.section-tabs a {
  display: inline-block;
  padding: .6rem .85rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 650;
}
.section-tabs a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--green); }
.opportunity-panels > [data-record-panel="opportunity"], .company-details { max-width: 58rem; }
[data-record-panel][hidden] { display: none; }
.opportunity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.8rem;
  border-top: 1px solid var(--line);
  margin: 1.3rem 0 0;
  padding-top: 1rem;
  color: var(--muted);
  font-size: .875rem;
}
.opportunity-meta dd { margin: 0; }
.record-tab-heading, .record-tab-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem 1rem;
}
.record-tab-heading h2 { margin: 0; }
.record-tab-list .activity { margin: .85rem 0 0; }
.record-tab-list .activity li { padding: .9rem 0; overflow-wrap: anywhere; }
.record-tab-list .activity:last-child li:last-child { padding-bottom: 0; }
.record-tab-list .activity p { margin-top: .4rem; }
.record-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  color: var(--ink);
  overflow: auto;
}
.record-dialog::backdrop { background: rgb(26 39 30 / 42%); }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; }
.record-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.record-row-actions > small { margin-inline-end: .4rem; }
.record-row-actions button { font-size: .875rem; padding: .3rem .65rem; }
button.destructive { color: #8b3028; }
button.destructive:hover { background: #f6e5df; }
.admin-actions { flex-wrap: wrap; justify-content: flex-end; margin-bottom: 1rem; }
.list-pagination { flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.list-pagination .actions { gap: .5rem; }
.list-pagination .button, .list-pagination button { font-size: .875rem; padding: .3rem .65rem; }
.table-wrap > .list-pagination, .report-section > .list-pagination { padding-inline: 1.15rem; }
[data-handoff-contacts] > [hidden] { display: none; }
.division-details, .user-access { display: grid; gap: .5rem; }
.division-details h2, .user-access h2 { margin: 0; overflow-wrap: anywhere; }
.user-access .meta { margin: 0; overflow-wrap: anywhere; }
.user-access .fields { margin-top: .35rem; }
.connection-details { margin: 0 0 .85rem; }
.connection-details dd:last-child { margin-bottom: 0; }
.connection-result { margin: .85rem 0 0; }
.connection-result.success { background: #e5f0e7; border-color: #bed4c3; color: var(--green-deep); }
.report-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0 0 1.5rem;
  overflow: hidden;
  background: var(--line);
}
.report-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .35rem;
  padding: .95rem 1rem;
  background: var(--paper);
}
.report-metrics dt { color: var(--muted); font-size: .86rem; font-weight: 500; line-height: 1.35; }
.report-metrics dd { margin: 0; font-size: 1.65rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.report-section { padding: 0; margin-bottom: 1rem; overflow: hidden; }
.report-section h2 { margin: 0; padding: .9rem 1.15rem; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem 1.25rem;
  padding: .8rem 1.15rem;
  border-top: 1px solid var(--line);
}
.report-list li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.report-timing { display: grid; text-align: end; flex-shrink: 0; font-size: .86rem; }
.report-timing span { font-weight: 650; }
.report-timing time { color: var(--muted); }
.report-empty { padding: 0 1.15rem .9rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 1080px) { .report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-list li { flex-wrap: wrap; gap: .35rem 1rem; }
  .report-timing { display: flex; gap: .5rem; text-align: start; }
}
.report-metrics > div { position: relative; }
.report-metrics a { font-weight: inherit; }
.report-metrics a:hover, .section-tabs a:hover { text-decoration: none; }
.report-metrics a::before {
  content: "";
  position: absolute;
  inset-block-start: 1.1rem;
  inset-inline-end: .9rem;
  width: .35rem;
  height: .35rem;
  border-block-start: 1px solid;
  border-inline-end: 1px solid;
  transform: rotate(45deg);
  color: var(--muted);
}
.report-metrics a::after { content: ""; position: absolute; inset: 0; }
.report-metrics > div:hover { background: var(--row-hover); }
.report-metrics > div:focus-within { outline: 2px solid #3a8162; outline-offset: -2px; }
.report-section > .report-list:first-child li:first-child { border-top: 0; }
.report-section > .report-empty:first-child { padding-top: .9rem; }
.report-meeting-summary { margin-top: .25rem; white-space: pre-wrap; }
.activity li:target { background: #eaf0e5; scroll-margin-block: 1rem; }
.record-row { position: relative; }
.record-row:hover, .record-row:focus-within { background: var(--row-hover); }
.record-row-link::after { content: ""; position: absolute; inset: 0; }
.record-row-link:focus-visible { outline: none; }
.record-row-link:focus-visible::after { outline: 2px solid #3a8162; outline-offset: -2px; }
.company-list > .record-row { padding-inline: .7rem; isolation: isolate; }
.company-list > .record-row:is(:hover, :focus-within) { background: transparent; }
.company-list > .record-row:is(:hover, :focus-within)::before {
  content: "";
  position: absolute;
  inset: .2rem 0;
  border-radius: .5rem;
  background: var(--row-hover);
  pointer-events: none;
  z-index: -1;
}
.company-list > .record-row .record-row-link:focus-visible::after { inset: .2rem 0; border-radius: .5rem; }
