:root {
  color-scheme: dark;
  --bg: #0b0c0d;
  --panel: #151617;
  --panel2: #1b1c1e;
  --border: #38332c;
  --gold: #cdb17a;
  --text: #f4f1eb;
  --muted: #a4a39f;
  --safe: #a0c9a6;
  --error: #f3a3a3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft Yahei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.site-bar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #252525;
  gap: 18px;
  background: #0b0c0d;
}
.site-bar img {
  max-width: 210px;
  height: 45px;
  object-fit: contain;
  object-position: left;
}
.site-bar nav {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px 65px;
}
.hero {
  padding: 65px 0 54px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 90% 5%, #30281c 0, transparent 57%);
}
.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 19px 0;
}
h2 {
  font-size: 27px;
  line-height: 1.3;
  margin: 7px 0 0;
}
h3 {
  font-size: 19px;
  margin: 0 0 13px;
}
p {
  margin: 8px 0;
}
.hero > p {
  font-size: 17px;
  max-width: 750px;
  color: #ccc5ba;
}
.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
}
.hero-status span {
  border: 1px solid #504735;
  border-radius: 30px;
  padding: 7px 13px;
  font-size: 12px;
  color: #e2c99a;
}
.section {
  padding: 42px 0;
  border-bottom: 1px solid var(--border);
}
.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.heading.secondary {
  align-items: center;
  margin-top: 30px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product,
.intake {
  border: 1px solid #343434;
  background: var(--panel);
  padding: 20px;
  min-width: 0;
  border-radius: 4px;
}
.product h3 {
  font-size: 18px;
  margin: 8px 0 6px;
}
.product .tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
}
.product p {
  color: var(--muted);
}
.product .price {
  font-size: 24px;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.form-surface {
  border: 1px solid #343434;
  background: var(--panel);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  border-radius: 4px;
}
.form-surface.stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.form-surface label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  color: #d7d0c2;
  font-weight: 500;
}
.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #48443c;
  background: #0e0f11;
  color: var(--text);
  border-radius: 3px;
  font: inherit;
  padding: 12px 13px;
  outline-offset: 3px;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}
button {
  font: inherit;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 3px;
  border: 1px solid var(--gold);
  color: #17130b;
  background: var(--gold);
  font-weight: 700;
}
button:hover {
  filter: brightness(1.08);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.subtle {
  background: transparent;
  color: var(--gold);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.state {
  border-left: 3px solid var(--gold);
  background: #1a1b1d;
  padding: 12px 15px;
  margin-top: 16px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.state.error {
  border-color: var(--error);
}
.pill {
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-bottom: 20px;
}
.stats > div {
  background: #141515;
  padding: 17px;
  border: 1px solid #3c3832;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats span {
  color: var(--muted);
  font-size: 12px;
}
.stats strong {
  font-size: 30px;
  color: var(--gold);
}
.intakes {
  display: grid;
  gap: 14px;
}
.intake {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.intake h3 {
  margin: 0;
}
.intake .sub {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.intake .summary {
  grid-column: 1/-1;
  color: #d6cebf;
}
.intake .missing {
  grid-column: 1/-1;
  border-top: 1px dashed #4a4338;
  padding-top: 9px;
  color: #d8c6a4;
}
.selection {
  font-weight: 700;
  color: var(--gold);
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.evidence-grid > div {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid #363636;
  padding: 12px;
  background: #151617;
  font-size: 12px;
}
.evidence-grid strong {
  display: block;
  color: #e7d3ab;
}
.evidence-grid span {
  color: #bbb;
}
footer {
  border-top: 1px solid #252525;
  padding: 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #777;
  font-size: 12px;
}
@media (max-width: 760px) {
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding: 42px 0 35px;
  }
  .section {
    padding: 31px 0;
  }
  .heading {
    align-items: start;
    flex-direction: column;
  }
  .form-surface {
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
  }
  .form-surface label {
    width: 100%;
  }
  .fields {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .form-surface button {
    width: 100%;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats strong {
    font-size: 24px;
  }
}
@media (max-width: 430px) {
  .site-bar {
    height: auto;
    align-items: center;
    padding: 11px 15px;
  }
  .site-bar img {
    width: 125px;
    height: auto;
  }
  .site-bar nav {
    font-size: 11px;
    gap: 10px;
  }
  main {
    padding: 0 15px 45px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero > p {
    font-size: 14px;
  }
  .hero-status {
    gap: 7px;
  }
  .hero-status span {
    font-size: 10px;
    padding: 5px 8px;
  }
  h2 {
    font-size: 23px;
  }
  .catalog {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .product {
    padding: 13px;
  }
  .product h3 {
    font-size: 14px;
  }
  .product .price {
    font-size: 20px;
  }
  .product p {
    font-size: 11px;
  }
  .hint {
    font-size: 11px;
  }
  .stats {
    gap: 6px;
  }
  .stats > div {
    padding: 9px;
  }
  .stats strong {
    font-size: 19px;
  }
  .stats span {
    font-size: 10px;
  }
  .intake {
    display: block;
    padding: 15px;
  }
  .intake button {
    width: 100%;
    margin-top: 12px;
  }
  .evidence-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  footer {
    text-align: center;
  }
}
[hidden] {
  display: none !important;
}
.selection,
.missing {
  overflow-wrap: anywhere;
}
.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.workspace-nav a {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.workspace-nav [aria-current="page"] {
  font-weight: 700;
  color: var(--text);
}
.business-section {
  margin-block: 28px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
}
#d04-items {
  min-width: 0;
  overflow-wrap: anywhere;
}
.original-fields,
.d04-row,
.lead-card,
.source-card {
  min-width: 0;
  padding: 16px;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.original-fields {
  display: grid;
  gap: 12px;
}
.original-fields legend {
  padding: 0 6px;
}
.original-fields label,
.form-surface .check-field {
  min-width: 0;
}
.form-surface .check-field {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.check-field input {
  width: 20px;
  flex: 0 0 20px;
}
.business-table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
  margin-block: 16px;
}
.business-table-wrap,
.v116-source-table,
.v116-source-rows,
.v116-source-rows > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.v116-table-filter {
  display: block;
  width: min(100%, 420px);
  margin-block: 10px;
}
.v116-data-table {
  min-width: 1100px;
  table-layout: fixed;
}
.v116-data-table th,
.v116-data-table td {
  min-width: 110px;
  max-width: 300px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.v116-data-table td input,
.v116-data-table td select,
.v116-data-table td textarea {
  min-width: 150px;
  max-width: 240px;
}
.commercial-finance-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.commercial-finance-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.v116-source-table {
  margin-block: 12px;
  padding: 12px;
  border: 1px solid var(--border);
}
.v116-source-table > summary,
.v116-source-rows summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
}
.v116-source-rows .business-table {
  margin-block: 8px;
}
.finance-report-actions,
.v4-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-block: 12px;
}
.finance-report-actions .state,
.v4-report-actions .v4-status {
  flex-basis: 100%;
}
.business-table caption {
  text-align: left;
  font-weight: 700;
  padding: 10px 0;
}
.business-table th,
.business-table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 10px;
}
.verified {
  color: var(--safe);
}
@media (max-width: 600px) {
  .form-surface label {
    min-width: 0;
  }
  .original-fields,
  .d04-row,
  .lead-card {
    padding: 12px;
  }
  .business-table,
  .business-table tbody,
  .business-table tr {
    display: block;
  }
  .business-table thead {
    display: none;
  }
  .business-table caption {
    display: block;
    width: 100%;
  }
  .business-table td {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 8px;
  }
  .business-table td::before {
    content: attr(data-label);
    color: var(--muted);
  }
  .v116-data-table {
    display: table;
  }
  .v116-data-table tbody {
    display: table-row-group;
  }
  .v116-data-table tr {
    display: table-row;
  }
  .v116-data-table thead {
    display: table-header-group;
  }
  .v116-data-table th,
  .v116-data-table td {
    display: table-cell;
  }
  .v116-data-table td::before {
    content: none;
  }
  .commercial-finance-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
