:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #202b2c;
  background: #f5f6f3;
  font-size: 15px;
  line-height: 1.55;
  --ink: #173d36;
  --muted: #626f6a;
  --line: #dce2dd;
  --green: #155f4b;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 78px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
  gap: 20px;
}
.wordmark {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -1px;
}
.wordmark span {
  font-weight: 400;
}
.wordmark i {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 20px;
  color: var(--muted);
}
main {
  max-width: 1376px;
  padding: 36px 28px 0;
  margin: auto;
}
.intro,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.intro {
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--green);
  margin: 0 0 10px;
}
h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 580;
  letter-spacing: -1.3px;
  margin: 0 0 8px;
  line-height: 1.2;
}
h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
  font-weight: 580;
}
h3 {
  font-size: 18px;
  margin: 0 0 16px;
  font-weight: 620;
}
p {
  margin: 0 0 18px;
  color: var(--muted);
}
.intro p:last-child {
  margin: 0;
}
.badge {
  background: #e7eee6;
  border: 1px solid #d4dfd0;
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--ink);
}
nav {
  display: flex;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid #c9d2cb;
  border-radius: 6px;
  padding: 10px 16px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 550;
  font-size: 13px;
}
button:hover {
  background: #edf3ed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #7ca892;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  padding: 0 0 17px;
  font-size: 13px;
  color: var(--muted);
}
nav button[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--green);
}
nav b {
  border: 1px solid #c9d2cb;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  margin-right: 7px;
}
nav button[aria-current] b {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 28px;
}
.light {
  background: #ecf0e8;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px dashed #a6b9ae;
  border-radius: 8px;
  padding: 24px 15px;
  background: #f8faf7;
  text-align: center;
  cursor: pointer;
}
.drop.drag {
  background: #e2f0e8;
  border-color: var(--green);
}
.drop span {
  font-size: 12px;
  color: var(--muted);
}
.drop .upload-icon {
  font-size: 26px;
  color: var(--green);
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.drop .choose-files {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 20px;
  border: 1px solid var(--brand-teal);
  border-radius: 6px;
  background: var(--brand-teal);
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.drop:hover .choose-files {
  background: var(--brand-teal-deep);
}
.drop:focus-within .choose-files {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--brand-mint);
}
.drop strong {
  font-size: 16px;
  font-weight: 560;
}
#file-list {
  padding: 0;
  list-style: none;
  font-size: 13px;
}
#file-list li {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  overflow-wrap: anywhere;
}
.actions,
.bottom-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #104b3b;
}
.fine {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 18px 0 0;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
}
.benefits {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.benefits li {
  padding: 0 0 19px 22px;
  border-left: 2px solid #b6c9b9;
  margin-bottom: 4px;
}
.benefits strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.benefits span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.section-heading {
  margin-bottom: 18px;
}
.section-heading p:last-child {
  margin: 0;
}
.stats {
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
.stat {
  flex: 1;
  background: white;
  padding: 14px 20px;
}
.stat b {
  font-size: 24px;
  display: block;
  font-weight: 550;
  line-height: 1.2;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}
.mapping-panel {
  padding: 0;
  overflow: hidden;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: block;
}
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  width: 100%;
  border: 1px solid #cdd7cf;
  border-radius: 5px;
  background: white;
  color: #26352f;
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
}
label select,
label input {
  display: block;
  margin-top: 5px;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.toolbar label {
  flex: 1;
}
.toolbar .inline {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 8px;
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
  max-height: 590px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background: #f6f8f4;
  position: sticky;
  top: 0;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 16px;
  font-weight: 600;
  z-index: 1;
}
td {
  padding: 13px 16px;
  border-top: 1px solid #e9ece7;
  vertical-align: top;
  font-size: 12px;
}
td:first-child {
  width: 34%;
}
td:nth-child(2) {
  width: 29%;
}
td strong {
  font-size: 12px;
  font-weight: 620;
  overflow-wrap: anywhere;
}
.sample {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.count {
  font-size: 10px;
  color: #849085;
  margin-top: 4px;
}
.rule-detail label {
  margin-bottom: 6px;
}
.rule-detail p {
  font-size: 10px;
  margin: 5px 0;
}
.rule-detail textarea {
  min-height: 55px;
}
.tag-editor {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
summary {
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.tag-editor p {
  font-size: 12px;
  margin: 10px 0;
}
.translation {
  display: grid;
  grid-template-columns: 1fr 1fr 90px 30px;
  gap: 6px;
  margin-bottom: 8px;
}
.translation button {
  padding: 5px;
}
.translation-note {
  grid-column: 1 / -1;
  color: #67645d;
}
.preview {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: 80vh;
  overflow: auto;
}
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.preview .badge {
  font-size: 9px;
  padding: 3px 8px;
}
.preview label {
  margin: 10px 0;
}
.preview select {
  margin-bottom: 8px;
}
dl {
  margin: 10px 0;
}
dt {
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  margin-top: 15px;
}
dd {
  margin: 3px 0 0;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice,
#message {
  padding: 14px 18px;
  border: 1px solid #d6dfd3;
  background: #edf3e9;
  border-radius: 7px;
  font-size: 12px;
  color: #3c5941;
  margin-bottom: 20px;
}
#message.error {
  background: #fff1e9;
  border-color: #e4ba9f;
  color: #853f20;
}
.buyer-card {
  margin-bottom: 20px;
}
.buyer-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.buyer-heading p {
  font-size: 11px;
}
.buyer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.criterion {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 112px 78px;
  gap: 8px;
  align-items: start;
  margin: 10px 0;
}
.criterion > label {
  padding-top: 8px;
}
.criterion textarea {
  min-height: 40px;
  resize: vertical;
}
.issues {
  padding: 10px 18px;
  font-size: 11px;
  color: #855226;
  background: #fcf5e7;
  border-radius: 5px;
}
.prompt {
  font-family: inherit;
  font-size: 11px;
  min-height: 240px;
  resize: vertical;
  background: #f8faf7;
}
.review-confirm {
  display: flex;
  align-items: start;
  gap: 8px;
  margin: 16px 0;
  font-size: 12px;
}
.buyer-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.empty {
  padding: 40px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  font-size: 13px;
  margin: 0;
}
.dirty {
  color: #8c5c19;
  background: #fff3d9;
  border-color: #e8d3a8;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin: 40px 0 0;
  padding: 20px 0;
  color: var(--muted);
  font-size: 10px;
}
.link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 10px;
  color: var(--muted);
}
ol {
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
}
ol li {
  padding: 0 0 14px 5px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .review-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .buyer-grid {
    grid-template-columns: 1fr;
  }
  .criterion {
    grid-template-columns: 90px minmax(0, 1fr) 110px 70px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .inline {
    width: 100%;
    padding: 0;
  }
  .intro .badge {
    display: none;
  }
}
@media (max-width: 760px) {
  header {
    height: 64px;
    padding: 0 20px;
  }
  .wordmark i,
  .quiet {
    display: none;
  }
  main {
    padding: 24px 16px 0;
  }
  .intro {
    margin-bottom: 25px;
  }
  h1 {
    font-size: 27px;
  }
  .intro p {
    font-size: 13px;
  }
  nav {
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 22px;
  }
  nav button {
    font-size: 10px;
    max-width: 85px;
  }
  nav b {
    display: block;
    margin: 0 auto 6px;
  }
  .upload-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .mapping-panel {
    padding: 0;
  }
  .preview {
    position: static;
    max-height: none;
  }
  .table-scroll {
    max-height: 550px;
  }
  .stats {
    flex-wrap: wrap;
  }
  .stat {
    flex: 1 1 30%;
    padding: 12px;
  }
  .stat b {
    font-size: 20px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .section-heading p {
    font-size: 12px;
  }
  td,
  th {
    padding: 10px 8px;
  }
  td:first-child {
    min-width: 140px;
  }
  td:nth-child(2) {
    min-width: 160px;
  }
  .rule-detail {
    min-width: 155px;
  }
  .criterion {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .criterion > label {
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .criterion textarea {
    grid-column: 1 / -1;
  }
  .buyer-heading {
    gap: 10px;
  }
  .buyer-heading h3 {
    font-size: 16px;
  }
  .buyer-heading .badge {
    font-size: 9px;
  }
  .translation {
    grid-template-columns: 1fr 1fr;
  }
  .actions button {
    width: 100%;
  }
  footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .intro {
    display: block;
  }
}

/* Each source field becomes its own small editor on a phone. */
@media (max-width: 760px) {
  .table-scroll thead {
    display: none;
  }
  .table-scroll table,
  .table-scroll tbody {
    display: block;
  }
  .table-scroll tr {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
  }
  .table-scroll td,
  .table-scroll td:first-child,
  .table-scroll td:nth-child(2) {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 6px 0;
    border: 0;
  }
  .table-scroll .sample {
    max-width: none;
  }
}

/* Claude Design, September 16: warm paper, teal destinations, local connectors. */
:root {
  color: #1d1b17;
  background: #f6f4ef;
  --ink: #1d1b17;
  --muted: #6b665c;
  --line: #e4dfd5;
  --green: #1f6b66;
}
header {
  background: #fbfaf7;
}
h1,
h2,
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
button,
.panel,
input,
select,
textarea {
  border-radius: 10px;
}
.panel {
  border-radius: 16px;
}
.primary {
  background: #1f6b66;
  border-color: #1f6b66;
  color: white;
}
.primary:hover {
  background: #164f4b;
}
.badge {
  background: #e9f0ee;
  border-color: #cfe3e0;
}
body[data-step]:not([data-step="upload"]) .intro {
  display: none;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 16px 0;
  flex-wrap: wrap;
}
.file-tab {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  background: #fbfaf7;
}
.file-tab span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.file-tab[aria-pressed="true"] {
  border-color: var(--green);
  background: #edf5f3;
}
.toolbar {
  flex-wrap: wrap;
  padding: 16px;
}
.toolbar label:not(.inline):not(.sr-only) {
  flex: 1;
  min-width: 150px;
}
.mapping-head,
.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.1fr);
  gap: 12px;
  padding: 16px 20px;
}
.mapping-head {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.07em;
  font-weight: 650;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mapping-head > span:last-child {
  color: var(--green);
}
.mapping-head b {
  display: inline-block;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  background: #f1eee8;
  padding: 2px 6px;
  border-radius: 4px;
}
.mapping-rows {
  max-height: 68vh;
  overflow: auto;
  padding: 4px;
}
.mapping-row {
  border-bottom: 1px solid #f1eee8;
  border-radius: 10px;
  align-items: start;
}
.mapping-row.selected {
  background: #fbfaf7;
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.source-cell,
.destination-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}
.source-cell strong {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.source-cell .sample {
  font-size: 14px;
  color: #1d1b17;
  line-height: 1.5;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.source-cell .count {
  display: block;
  font-size: 10px;
  color: #8a8478;
  margin-top: 5px;
}
.mapping-line {
  font-size: 35px;
  font-weight: 300;
  color: #bab3a7;
  line-height: 1.3;
  text-align: center;
}
.destination-button {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: #1f6b66;
  background: #f0f7f6;
  border-color: #cfe3e0;
  font-size: 13px;
}
.destination-button:hover {
  background: #e1eeeb;
  border-color: #80b4ad;
}
.destination-chip {
  padding: 1px 0;
}
.destination-chip + .destination-chip:before {
  content: "+ ";
  color: #8a8478;
}
.picker-chevron {
  margin-left: auto;
  color: #6b665c;
}
.destination-button.outside-home {
  color: #6b665c;
  background: #f6f4ef;
  border-style: dashed;
  border-color: #d5cfc4;
}
.destination-button.needs-attention {
  color: #805315;
  background: #fdf6e7;
  border-color: #d6b775;
}
.mapping-settings {
  margin-top: 7px;
  font-size: 12px;
}
.mapping-settings summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}
.mapping-settings .rule-detail {
  padding-top: 8px;
}
.mapping-settings p {
  font-size: 11px;
  margin-top: 8px;
  margin-bottom: 6px;
}
.changed-mapping {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: var(--green);
  margin-top: 4px;
}
.changed-mapping button {
  font-size: 10px;
  padding: 2px 4px;
  border: 0;
  text-decoration: underline;
}
.preview {
  background: #fbfaf7;
}
.preview-head h3 {
  margin-bottom: 5px;
}
.preview > p {
  font-size: 12px;
}
.contact-identity {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
.contact-identity h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 21px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4eeeb;
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
}
.preview-field {
  padding: 9px 8px;
  margin: 2px -8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.preview-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.preview-value {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preview-field summary {
  font-size: 12px;
  color: var(--green);
  cursor: pointer;
}
.preview-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.preview-tags span {
  font-size: 10px;
  padding: 3px 7px;
  border: 1px solid #e4dfd5;
  border-radius: 5px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.field-highlight {
  background: #dcece9;
  box-shadow: inset 3px 0 var(--green);
}
#destination-picker {
  width: min(470px, calc(100vw - 28px));
  max-height: 85vh;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 20px 80px #1d1b1733;
}
#destination-picker::backdrop {
  background: #1d1b1740;
}
.picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.picker-head h3 {
  margin: 0;
}
#close-picker {
  padding: 2px 10px;
  font-size: 22px;
}
#picker-source {
  margin: 12px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#destination-options {
  max-height: 48vh;
  overflow: auto;
  margin: 8px 0 16px;
}
#destination-options h4 {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin: 16px 8px 6px;
  color: var(--muted);
}
.picker-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 11px 10px;
  color: var(--ink);
}
.picker-option small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.picker-option:hover {
  background: #edf5f3;
}
@media (min-width: 1051px) {
  .review-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .mapping-head,
  .mapping-row {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.1fr);
    padding: 12px 8px;
    gap: 5px;
  }
  .mapping-head {
    font-size: 10px;
  }
  .mapping-head b {
    display: block;
    width: fit-content;
  }
  .mapping-line {
    font-size: 23px;
  }
  .destination-button {
    padding: 9px 8px;
    font-size: 12px;
  }
  .source-cell .sample {
    font-size: 12px;
  }
  .source-cell strong {
    font-size: 11px;
  }
  .mapping-rows {
    max-height: 55vh;
  }
  .file-tabs {
    padding: 12px 10px 0;
  }
  #destination-picker {
    margin: auto auto 12px;
    max-height: 85vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preview-field {
    transition: none;
  }
}
.restriction-note {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

/* CRM Better Doorway identity, supplied brand guide v1.0. */
:root {
  --brand-teal: #1f6b66;
  --brand-teal-deep: #164f4b;
  --brand-mint: #dcece9;
  --brand-mint-soft: #f0f7f6;
  --ink: #1d1b17;
  --ink-2: #4a463f;
  --ink-3: #6b665c;
  --ink-4: #8a8478;
  --ink-5: #a9a296;
  --linen: #f6f4ef;
  --linen-raised: #fbfaf7;
  --linen-deep: #f1eee8;
  --surface: #fff;
  --line: #e4dfd5;
  --line-soft: #ece8e0;
  --line-strong: #d5cfc4;
  --connector: #cfc9bf;
  --amber: #c77a05;
  --amber-border: #e0a53a;
  --amber-fill: #fdf6e7;
  --amber-text: #6a4200;
  --tag-fill: #eef1ea;
  --tag-text: #3b4a32;
  --radius-card: 16px;
  --radius-panel: 18px;
  --radius-control: 10px;
  --radius-chip: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-pop: 0 16px 40px rgba(29, 27, 23, 0.16);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--linen);
}
h1,
h2,
.wordmark,
.contact-identity h3,
.footer-brand {
  font-family: "Newsreader", Georgia, serif;
  font-optical-sizing: auto;
}
h1 {
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark img {
  display: block;
  flex-shrink: 0;
}
.wordmark .brand-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
}
.wordmark em,
.footer-brand em {
  font-weight: 400;
  font-style: italic;
}
header {
  background: var(--linen-raised);
}
header .quiet {
  font-size: 13px;
  color: var(--ink-3);
}
main {
  max-width: 1336px;
}
.panel {
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.preview {
  background: var(--linen-raised);
}
.contact-identity h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
button {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.primary {
  background: var(--brand-teal);
  color: white;
  font-weight: 600;
  border-color: var(--brand-teal);
}
.primary:hover {
  background: var(--brand-teal-deep);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px var(--brand-mint);
}
.badge {
  border-radius: var(--radius-chip);
  background: var(--brand-mint);
  color: var(--brand-teal-deep);
  border-color: transparent;
}
.eyebrow {
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.fine {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-3);
}
.file-tab {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
}
.file-tab span {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 12px;
}
.file-tab[aria-pressed="true"] {
  background: var(--brand-mint);
  border-color: var(--brand-teal);
}
.mapping-head {
  font-size: 12.5px;
  letter-spacing: 0.05em;
}
.mapping-line {
  color: var(--connector);
}
.destination-button {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--connector);
  border-radius: var(--radius-chip);
  font-size: 14px;
}
.destination-button:hover {
  background: var(--brand-mint-soft);
}
.destination-button.outside-home {
  background: var(--linen-deep);
  border-color: var(--line-strong);
  color: var(--ink-3);
}
.destination-button.needs-attention {
  background: var(--amber-fill);
  border-color: var(--amber-border);
  color: var(--amber-text);
}
.destination-button.needs-attention::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  color: white;
  flex-shrink: 0;
}
.preview-tags span {
  background: var(--tag-fill);
  color: var(--tag-text);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
}
.preview-label {
  font-size: 11.5px;
  color: var(--ink-3);
}
.preview-value {
  font-size: 14px;
}
.field-highlight {
  background: var(--brand-mint);
}
#destination-picker {
  box-shadow: var(--shadow-pop);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 20px;
  color: var(--ink);
}
.footer-brand img {
  margin-right: 3px;
}
@media (max-width: 760px) {
  .wordmark .brand-name {
    font-size: 27px;
  }
  .wordmark img {
    width: 36px;
    height: 36px;
  }
  .destination-button {
    font-size: 12.5px;
  }
  .mapping-head {
    font-size: 11px;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 26px;
  }
}

.status-card {background:var(--paper, #fff);border:1px solid #dedbd3;border-radius:16px;padding:24px;margin:20px 0;}
@media(max-width:650px){.status-card{padding:16px}nav{flex-wrap:wrap}}

#download-followups > div {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#download-followups h4 { margin: 0 0 8px; }
.all-files-download { margin-top: 28px; }
.all-files-download summary { cursor: pointer; color: var(--muted); }

.buyer-summary { display: grid; grid-template-columns: minmax(100px, 1fr) 3fr; gap: 10px 18px; margin: 18px 0 24px; }
.buyer-summary dt { color: var(--muted); }
.buyer-summary dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.buyer-simple { max-width: 760px; }
.buyer-simple > div > label { display: inline-flex; flex-direction: column; gap: 6px; margin: 0 16px 12px 0; }
.buyer-edit { margin: 16px 0; }
.buyer-edit > summary, .buyer-prompt-details > summary { cursor: pointer; color: var(--brand-teal); }
.buyer-prompt-details { margin-top: 12px; }
.generate-prompt { background: var(--brand-teal); color: white; }


/* Green consistently marks actions that apply, continue, copy, or download. */
.primary, .action-positive, .generate-prompt, .copy-prompt, .download-prompt {
  background: #287044;
  border-color: #287044;
  color: #fff;
  font-weight: 600;
}
.primary:hover, .action-positive:hover, .generate-prompt:hover,
.copy-prompt:hover, .download-prompt:hover {
  background: #1e5734;
  border-color: #1e5734;
}

/* Converted contacts lead; field mapping is an optional disclosure. */
.contact-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:20px 0 28px; }
.contact-card { min-width:0; padding:20px; align-self:start; }
.contact-card h3 { margin-top:0; overflow-wrap:anywhere; }
.contact-card .preview-label { margin-top:12px; }
.contact-card .preview-value,.contact-excerpt { overflow-wrap:anywhere; }
.contact-card .preview-tags { margin:16px 0; }
.contact-card details { margin-top:18px; }
.contact-card summary,.mapping-editor > summary { cursor:pointer; color:var(--brand-teal); }
.preview-group { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.preview-group select { display:block; }
.mapping-editor { margin:20px 0; }
.mapping-editor > summary { font-size:18px; font-weight:600; padding:16px 20px; border:1px solid var(--brand-teal); border-radius:8px; width:fit-content; }
.mapping-editor .review-grid { margin-top:18px; }
#mapping-attention button { margin-left:12px; }
.search-area { margin:20px 0; }
.search-map { height:320px; width:100%; border:1px solid #cad9d5; border-radius:8px; background:#e8eeeb; z-index:0; }
.search-map .leaflet-control a { font-size:12px; }
.search-map .leaflet-control-zoom a { font-size:22px; }
.search-map .leaflet-control-attribution { font-size:10px; }
@media(max-width:1100px) { .contact-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .contact-cards { grid-template-columns:1fr; } .search-map { height:280px; } }

.buyer-heading .badge { align-self:flex-start; flex:0 0 auto; }

/* One contact at a time, in a wide green preview. */
.contact-cards { display:block; }
.contact-card { background:#edf3e9; border-color:#d6dfd3; padding:26px 30px; }
.contact-navigation { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #cfddca; padding-bottom:18px; margin-bottom:20px; }
.contact-navigation button { background:transparent; border-color:#9fba9c; }
.contact-counter { color:var(--muted); font-size:13px; text-align:center; }
.contact-columns { display:grid; grid-template-columns:1fr 1.15fr 1.4fr; gap:32px; }
.contact-columns > div { min-width:0; }
.contact-columns h3 { font-size:26px; margin:4px 0 16px; }
.contact-columns .preview-label:first-child { margin-top:0; }
.contact-excerpt { margin:6px 0 16px; font-size:14px; line-height:1.6; }
.contact-card > details { border-top:1px solid #cfddca; padding-top:16px; }
@media(max-width:700px) {
 .contact-card { padding:20px; }
 .contact-columns { grid-template-columns:1fr; gap:20px; }
 .contact-navigation { gap:8px; }
 .contact-navigation button { padding:10px; font-size:12px; }
 .contact-counter { font-size:12px; }
}

/* Primary continuation actions sit at the end of their row. */
.upload-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; }
#inspect, #to-buyers { margin-left:auto; }
#demo { background:transparent; color:var(--ink); border:1px solid #c6d3c4; }
#demo:hover { background:#edf3e9; }
@media(max-width:700px) {
 .upload-actions { flex-wrap:wrap; }
 .upload-actions button { flex:0 1 auto; width:auto; }
 #mapping .bottom-actions { align-items:flex-end; }
}

/* Make unresolved mapping choices visible above the contact preview. */
#mapping-attention { background:#fff5df; border:1px solid #c99d45; color:#624817; font-size:14px; }
#mapping-attention strong { display:block; margin-bottom:4px; }
#mapping-attention button { display:block; margin-top:10px; max-width:100%; white-space:normal; overflow-wrap:anywhere; }

#support-open { position:fixed; bottom:20px; right:20px; z-index:50; background:var(--green); color:white; border-color:var(--green); box-shadow:0 3px 12px #173d3633; }
#support-dialog { width:min(620px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid var(--line); border-radius:14px; padding:24px; }
#support-dialog::backdrop { background:#173d3666; }
#support-form > label { display:block; margin:14px 0; }
#support-form textarea, #support-email { display:block; width:100%; margin-top:6px; }
#support-diagnostics { white-space:pre-wrap; overflow-wrap:anywhere; max-height:200px; overflow:auto; font-size:11px; }
#support-form .support-consent { display:flex; align-items:flex-start; gap:10px; font-size:13px; }
#support-contacts { flex:0 0 auto; width:auto; margin-top:5px; }
/* The AI notice on every report form (forge converter-support-ai-notice). It states what
   happens to a report; it is not a choice, so it reads as a quiet panel, not a control. */
.ai-notice { margin:14px 0; padding:10px 12px; border-left:3px solid var(--brand-teal); border-radius:0 8px 8px 0; background:var(--brand-mint-soft); color:var(--ink); font-size:13px; line-height:1.55; }
.unknown-format-card .ai-notice { margin:14px 0 4px; background:var(--surface); }
#support-status { overflow-wrap:anywhere; }
#support-status.is-error {color:#8a2c0d;}
footer { padding-bottom:80px; }


.global-tag-chips { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.global-tag-chip { display:inline-flex; align-items:center; gap:8px; background:#e5f2e9; border-radius:20px; padding:4px 8px 4px 14px; overflow-wrap:anywhere; }
.global-tag-chip button { border:0; background:transparent; padding:4px 8px; min-height:32px; color:inherit; }
#global-tag-input { width:100%; }

/* Claude Design, September 23: production adaptation of the approved prototype. */
body[data-brand="prototype-v2"] {
  --ink:#1b1f1c; --muted:#5c6660; --line:#e3e0d8; --green:#1e4d3b;
  --brand-teal:#1e4d3b; --brand-mint:#e6efe6; --paper:#fff;
  background:#f7f4ee; color:var(--ink); font-family:"IBM Plex Sans",Helvetica,Arial,sans-serif;
  font-size:15px; line-height:1.5; min-height:100vh;
}
body[data-brand="prototype-v2"] :is(h1,h2,h3,h4,.brand-name,.footer-brand) { font-family:inherit; font-style:normal; letter-spacing:-.02em; }
body[data-brand="prototype-v2"] h1 {font-size:30px;line-height:1.2;margin:0 0 10px;font-weight:600;max-width:none;}
body[data-brand="prototype-v2"] h2 {font-size:20px;line-height:1.3;}
body[data-brand="prototype-v2"] h3 {font-size:18px;}
body[data-brand="prototype-v2"] p {color:var(--muted);}
body[data-brand="prototype-v2"] a {color:var(--green);text-underline-offset:3px;}
body[data-brand="prototype-v2"] :is(button,input,select,textarea) {font-family:inherit;font-size:14px;}
body[data-brand="prototype-v2"] :is(button,input,select,textarea,summary,a):focus-visible {outline:3px solid #7fb59a;outline-offset:3px;}
body[data-brand="prototype-v2"] button {border-radius:8px;min-height:44px;box-shadow:none;}
body[data-brand="prototype-v2"] :is(.primary,.action-positive,.generate-prompt,.copy-prompt,.download-prompt,.choose-files) {background:#1e4d3b;border-color:#1e4d3b;color:#fff;}
body[data-brand="prototype-v2"] :is(.primary,.action-positive,.generate-prompt,.copy-prompt,.download-prompt):hover {background:#173d2f;border-color:#173d2f;}
body[data-brand="prototype-v2"] button:disabled {opacity:.48;cursor:not-allowed;}
body[data-brand="prototype-v2"] .app-header {display:flex;position:static;height:auto;padding:14px 24px;gap:12px 24px;flex-wrap:wrap;background:#f7f4ee;border-bottom:1px solid var(--line);}
.header-brand {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;}
body[data-brand="prototype-v2"] .wordmark {font-family:inherit;font-size:19px;font-weight:600;letter-spacing:-.02em;color:var(--green);}
body[data-brand="prototype-v2"] header .quiet {display:block;font-size:12px;color:var(--muted);}
body[data-brand="prototype-v2"] nav {display:flex;gap:4px;flex-wrap:wrap;padding:0;margin:0;border:0;overflow:visible;}
body[data-brand="prototype-v2"] nav button {display:flex;align-items:center;gap:8px;background:transparent;border:0;border-radius:999px;padding:7px 12px;min-height:40px;font-size:13px;color:var(--muted);white-space:nowrap;}
body[data-brand="prototype-v2"] nav button[aria-current] {background:#e6efe6;color:#1e4d3b;}
body[data-brand="prototype-v2"] nav b {display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:12px;border:0;background:#ebece6;margin:0;}
body[data-brand="prototype-v2"] nav button[aria-current] b {background:#1e4d3b;color:#fff;}
body[data-brand="prototype-v2"] main {max-width:1080px;padding:34px 24px 0;min-height:calc(100vh - 74px);display:flex;flex-direction:column;}
body[data-brand="prototype-v2"] .step {flex:1;}
body[data-brand="prototype-v2"] .section-heading {margin-bottom:22px;align-items:flex-start;flex-wrap:wrap;}
body[data-brand="prototype-v2"] .section-heading p {max-width:720px;font-size:15px;}
body[data-brand="prototype-v2"] .eyebrow {color:var(--muted);font-size:11px;letter-spacing:.08em;}
.upload-heading {max-width:670px;margin-bottom:28px;}
.upload-heading p {font-size:17px;margin:0;}
body[data-brand="prototype-v2"] .drop {display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:250px;padding:36px 24px;border:2px dashed #c9d9cd;border-radius:16px;background:#fafaf8;color:var(--muted);cursor:default;}
body[data-brand="prototype-v2"] .drop strong {font-size:18px;color:var(--ink);}
body[data-brand="prototype-v2"] .upload-icon {width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:#e6efe6;font-size:24px;color:var(--green);}
body[data-brand="prototype-v2"] #files {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0;}
.drop-actions {display:flex;flex-wrap:wrap;justify-content:center;gap:12px;}
body[data-brand="prototype-v2"] #demo {background:transparent;color:var(--green);border:1px solid var(--green);}
.upload-next {display:flex;justify-content:space-between;align-items:flex-start;gap:28px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px;}
.upload-next .fine {max-width:630px;margin:0;}
.upload-next button {flex-shrink:0;}
.upload-details {margin-top:24px;color:var(--muted);font-size:13px;}
.upload-details summary {cursor:pointer;}
#selected-files {margin-top:24px;}
#selected-files h2 {font-size:17px;}
#file-count {font-weight:400;color:var(--muted);}
body[data-brand="prototype-v2"] #file-list {padding:0;list-style:none;}
body[data-brand="prototype-v2"] #file-list li {padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:10px;margin:8px 0;gap:12px;}
body[data-brand="prototype-v2"] #file-list li span {overflow-wrap:anywhere;min-width:0;}
body[data-brand="prototype-v2"] :is(.panel,.status-card,.buyer-card) {box-shadow:none;border:1px solid var(--line);border-radius:12px;}
body[data-brand="prototype-v2"] .preview-group {font-size:13px;gap:14px;justify-content:space-between;}
body[data-brand="prototype-v2"] .preview-group label {display:flex;align-items:center;gap:10px;}
body[data-brand="prototype-v2"] .preview-group .fine {max-width:410px;margin:0;}
body[data-brand="prototype-v2"] .contact-cards {display:block;margin:16px 0 20px;}
body[data-brand="prototype-v2"] .contact-card {background:#e6efe6;border:0;border-radius:16px;padding:20px;}
body[data-brand="prototype-v2"] .contact-navigation {border:0;margin:0 0 16px;padding:0;}
body[data-brand="prototype-v2"] .contact-navigation button {background:#fff;border:1px solid #c9d9cd;color:var(--green);}
body[data-brand="prototype-v2"] .contact-counter {font-size:13px;}
body[data-brand="prototype-v2"] .contact-columns {grid-template-columns:1.05fr 1fr 1.15fr;background:#fff;border-radius:12px;padding:22px;gap:26px;}
body[data-brand="prototype-v2"] .contact-columns h3 {font-size:23px;margin:0 0 16px;}
body[data-brand="prototype-v2"] .contact-card .preview-label {font-size:11px;font-weight:600;letter-spacing:.035em;color:var(--muted);margin:14px 0 5px;}
body[data-brand="prototype-v2"] .contact-card .preview-value {font-size:14px;}
body[data-brand="prototype-v2"] .contact-excerpt {font-size:14px;white-space:pre-wrap;line-height:1.55;margin:6px 0;}
body[data-brand="prototype-v2"] .contact-card .preview-tags {margin:8px 0;}
body[data-brand="prototype-v2"] .preview-tags span {background:#f7f4ee;border:1px solid var(--line);border-radius:999px;font-size:12px;padding:4px 10px;}
.status-pill {display:inline-block;background:#1e4d3b;color:#fff;border-radius:999px;padding:4px 12px;font-weight:600;font-size:13px;}
body[data-brand="prototype-v2"] .text-action {border:0;min-height:32px;padding:2px 0;color:var(--green);background:transparent;text-decoration:underline;}
body[data-brand="prototype-v2"] .contact-card > details {font-size:13px;margin-top:14px;}
body[data-brand="prototype-v2"] .stats {display:flex;flex-wrap:wrap;gap:12px;background:transparent;margin:20px 0;}
body[data-brand="prototype-v2"] .stats > * {flex:1;min-width:120px;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;}
body[data-brand="prototype-v2"] .stats strong {font-family:inherit;font-size:25px;color:var(--ink);}
body[data-brand="prototype-v2"] .mapping-editor {border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 18px;}
body[data-brand="prototype-v2"] .mapping-editor > summary {width:100%;border:0;padding:18px 0;font-size:16px;border-radius:0;}
body[data-brand="prototype-v2"] .mapping-editor[open] {padding-bottom:18px;}
body[data-brand="prototype-v2"] .mapping-editor .review-grid {grid-template-columns:minmax(0,1fr) 280px;}
body[data-brand="prototype-v2"] .mapping-panel {padding:0;border:0;}
body[data-brand="prototype-v2"] .notice {border-radius:10px;background:#fbf1de;border:1px solid #ebd3a1;color:#5a3d00;padding:14px 16px;}
body[data-brand="prototype-v2"] .bottom-actions,body[data-brand="prototype-v2"] #statuses > .actions {display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:22px;margin-top:26px;}
body[data-brand="prototype-v2"] .status-card {padding:24px;margin:24px 0;}
body[data-brand="prototype-v2"] .global-tag-chip {background:#fff;border:1px solid #c9d9cd;}
body[data-brand="prototype-v2"] #status-preview-state {font-size:13px;}
body[data-brand="prototype-v2"] #download > .upload-grid {grid-template-columns:1.3fr 1fr;gap:24px;}
body[data-brand="prototype-v2"] .import-panel {border-color:#c9d9cd;background:#e6efe6;padding:28px;}
body[data-brand="prototype-v2"] #download .light {background:transparent;border:0;padding:8px 12px;}
body[data-brand="prototype-v2"] #download ol {padding-left:22px;}
body[data-brand="prototype-v2"] #download li {padding:0 0 16px 8px;}
body[data-brand="prototype-v2"] footer {margin-top:70px;padding:22px 0 30px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);gap:12px;}
body[data-brand="prototype-v2"] .footer-brand {display:none;}
body[data-brand="prototype-v2"] #support-open {background:#fff;color:var(--green);border:1px solid #c9d9cd;border-radius:999px;box-shadow:0 3px 12px #1e4d3b14;bottom:18px;right:18px;font-size:13px;}
body[data-brand="prototype-v2"] dialog {background:#f7f4ee;border:1px solid var(--line);border-radius:16px;padding:24px;max-height:85vh;overflow:auto;}
.processing {position:fixed;inset:0;background:#f7f4eeeF;display:grid;place-items:center;z-index:1500;padding:24px;}
.processing-card {max-width:460px;text-align:center;}
.processing-spinner {display:block;margin:0 auto 24px;border:3px solid #c9d9cd;border-top-color:#1e4d3b;border-radius:50%;width:42px;height:42px;animation:processing-spin 1s linear infinite;}
@keyframes processing-spin {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.processing-spinner {animation:none;border-top-color:#1e4d3b;}}
@media(max-width:800px){
 body[data-brand="prototype-v2"] .app-header {padding:14px 18px;}
 body[data-brand="prototype-v2"] main {padding:26px 18px 0;}
 body[data-brand="prototype-v2"] nav {width:100%;}
 body[data-brand="prototype-v2"] nav button {padding:7px 9px;font-size:12px;}
 body[data-brand="prototype-v2"] .contact-columns {grid-template-columns:1fr 1fr;gap:20px;}
 body[data-brand="prototype-v2"] .contact-columns > div:last-child {grid-column:1/-1;}
 body[data-brand="prototype-v2"] .mapping-editor .review-grid {grid-template-columns:1fr;}
 body[data-brand="prototype-v2"] #download > .upload-grid {grid-template-columns:1fr;}
}
@media(max-width:540px){
 body[data-brand="prototype-v2"] h1 {font-size:25px;}
 body[data-brand="prototype-v2"] header .quiet {font-size:11px;}
 .header-brand {gap:4px 12px;}
 body[data-brand="prototype-v2"] .drop {padding:26px 16px;}
 .drop-actions {flex-direction:column;width:100%;}
 .upload-next {flex-direction:column;gap:18px;}
 .upload-next button {align-self:flex-end;}
 body[data-brand="prototype-v2"] .contact-card {padding:14px;}
 body[data-brand="prototype-v2"] .contact-columns {grid-template-columns:1fr;padding:18px;}
 body[data-brand="prototype-v2"] .preview-group {align-items:flex-start;}
 body[data-brand="prototype-v2"] .stats {gap:8px;}
 body[data-brand="prototype-v2"] .stats > * {min-width:calc(50% - 8px);padding:12px;}
 body[data-brand="prototype-v2"] .status-card {padding:18px;}
 body[data-brand="prototype-v2"] .bottom-actions {flex-wrap:wrap;}
 body[data-brand="prototype-v2"] footer {padding-bottom:85px;flex-wrap:wrap;}
}

body[data-brand="prototype-v2"] #download-followups {display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px;}
body[data-brand="prototype-v2"] #download-followups > div {background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin:0;}
body[data-brand="prototype-v2"] #prompts-download {grid-column:1/-1;}
body[data-brand="prototype-v2"] #buyer-list {display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start;}
.buyer-navigation {display:flex;flex-direction:column;gap:8px;}
.buyer-navigation button {display:flex;flex-direction:column;text-align:left;gap:5px;background:#fff;border:1px solid #e3e0d8;padding:14px;}
.buyer-navigation button span {font-size:12px;color:#5c6660;}
.buyer-navigation button[aria-pressed="true"] {background:#e6efe6;border-color:#1e4d3b;}
body[data-brand="prototype-v2"] .buyer-card {margin:0;padding:24px;min-width:0;}
body[data-brand="prototype-v2"] .buyer-simple > div > button {margin:0 8px 10px 0;}
body[data-brand="prototype-v2"] .stats {border:0;box-shadow:none;}
body[data-brand="prototype-v2"] .preview-group label {white-space:nowrap;}
@media(max-width:650px){
 body[data-brand="prototype-v2"] #download-followups,body[data-brand="prototype-v2"] #buyer-list {grid-template-columns:1fr;}
 .buyer-navigation {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 .buyer-navigation button {min-width:0;overflow-wrap:anywhere;}
 body[data-brand="prototype-v2"] .buyer-card {padding:18px;}
}
body[data-brand="prototype-v2"] nav {justify-content:flex-start;}
body[data-brand="prototype-v2"] nav button {max-width:none;flex-shrink:0;}
body[data-brand="prototype-v2"] nav b {flex-shrink:0;}

/* Explain the converter at its point of use; the upload stays on the same screen. */
body[data-brand="prototype-v2"] .welcome-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:60px;align-items:center;margin:20px 0 28px}
body[data-brand="prototype-v2"] .welcome-copy h1{font-family:Newsreader,Georgia,serif;font-size:clamp(42px,4.8vw,66px);font-weight:400;line-height:1.08;letter-spacing:-2px;max-width:550px;margin:16px 0 22px}
body[data-brand="prototype-v2"] .welcome-copy h1 em{color:#6b805a;font-weight:400}
body[data-brand="prototype-v2"] .welcome-copy .welcome-lede{font-size:18px;line-height:1.65;color:#293d33;margin-bottom:15px}
.welcome-copy>p:not(.eyebrow){max-width:550px}
.welcome-assurances{display:flex;gap:8px 18px;flex-wrap:wrap;color:#416044;font-size:12px;margin-top:25px}
body[data-brand="prototype-v2"] .welcome-upload .drop{padding:38px 20px;background:#edf2e8;border:1px dashed #91a881;min-height:270px;display:flex;flex-direction:column;justify-content:center;border-radius:16px}
body[data-brand="prototype-v2"] .welcome-upload .drop.drag{background:#dcebcf;border-color:#1e4d3b}
.welcome-upload .drop>span:not(.upload-icon){font-size:12px;max-width:300px;line-height:1.6}
.welcome-upload .drop-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px}
.welcome-local{text-align:center;font-size:11px;margin:12px 0 0}
.welcome-how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;border-top:1px solid #d8ddd1;border-bottom:1px solid #d8ddd1;padding:28px 0;margin:30px 0}
.welcome-how article{display:flex;gap:16px}.welcome-number{font-family:Newsreader,Georgia,serif;font-size:28px;line-height:1.2;color:#708361}
body[data-brand="prototype-v2"] .welcome-how h2{font-size:16px;margin:0 0 9px;font-family:inherit;letter-spacing:-.2px}.welcome-how p{font-size:13px;line-height:1.7;margin:0}.welcome-explainer{margin-bottom:15px}
@media(max-width:850px){body[data-brand="prototype-v2"] .welcome-grid{gap:30px}.welcome-how{gap:18px}.welcome-how article{gap:10px}}
@media(max-width:650px){body[data-brand="prototype-v2"] .welcome-grid{grid-template-columns:1fr;margin-top:5px;gap:26px}body[data-brand="prototype-v2"] .welcome-copy h1{font-size:43px;max-width:400px;letter-spacing:-1.5px}body[data-brand="prototype-v2"] .welcome-copy .welcome-lede{font-size:16px}.welcome-copy>p:not(.eyebrow){font-size:14px}.welcome-how{grid-template-columns:1fr;padding:23px 0;gap:23px}.welcome-how article{gap:18px}.welcome-assurances{margin-top:18px}body[data-brand="prototype-v2"] .welcome-upload .drop{padding:25px 16px;min-height:230px}}

.analytics-notice{font-size:11px;line-height:1.5;padding:10px 14px;border:1px solid var(--line);border-radius:8px;margin-bottom:20px}.analytics-notice button{font:inherit;text-decoration:underline;background:transparent;border:0;padding:0 4px;min-height:24px}

/* Publisher colophon and compact legal footer. */
body[data-brand="prototype-v2"] footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.footer-notice{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:11px}
.footer-notice a{text-underline-offset:3px}
.elorati-colophon{display:flex;align-items:center;gap:11px;text-decoration:none;color:#1b2a24;padding:8px}
.elorati-colophon img{flex:none;width:32px;height:16px}.elorati-colophon span{font-size:11px}.elorati-colophon b{font-family:Georgia,serif;font-size:18px;font-weight:600;margin-left:3px}
body[data-brand="prototype-v2"] footer #clear{justify-self:end}
@media(max-width:650px){body[data-brand="prototype-v2"] footer{grid-template-columns:1fr auto;gap:24px 12px}.footer-notice{grid-column:1/-1}.elorati-colophon{justify-self:start;padding-left:0}body[data-brand="prototype-v2"] footer #clear{font-size:12px}}

.migration-faq{margin:55px 0 15px;max-width:820px}.migration-faq>h2{font-family:Newsreader,Georgia,serif;font-size:32px;font-weight:500}.migration-faq .faq-intro{font-size:14px}.migration-faq details{border-bottom:1px solid var(--line);padding:17px 0}.migration-faq summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.6}.migration-faq details p{font-size:14px;line-height:1.75;margin:14px 0 0;max-width:740px}.migration-faq a{text-underline-offset:3px}

/* Persistent, clickable conversion breadcrumb and adjacent-step controls. */
body[data-brand="prototype-v2"] .app-header {flex-wrap:wrap;}
body[data-brand="prototype-v2"] nav.step-breadcrumbs {width:100%;gap:4px;padding-top:12px;border-top:1px solid #e3e0d8;}

body[data-brand="prototype-v2"] .step-breadcrumbs button:disabled {opacity:.5;cursor:not-allowed;}
.step-controls {display:flex;align-items:center;gap:12px;justify-content:space-between;margin:0 0 24px;}
.step-controls button {background:transparent;color:var(--green);border:1px solid #c9d9cd;font-size:13px;}
#step-position {color:var(--muted);font-size:12px;margin-left:auto;}
@media(max-width:600px) {
 body[data-brand="prototype-v2"] nav.step-breadcrumbs {gap:2px;}
 body[data-brand="prototype-v2"] .step-breadcrumbs button {padding:6px;font-size:11px;gap:4px;}
 body[data-brand="prototype-v2"] .step-breadcrumbs button + button::before {margin-right:2px;}
 .step-controls {flex-wrap:wrap;gap:8px;}
 .step-controls button {padding:10px;}
}

/* Arrow-shaped steps keep the current position prominent at every screen size. */
body[data-brand="prototype-v2"] nav.step-breadcrumbs {gap:3px;}
body[data-brand="prototype-v2"] .step-breadcrumbs button {
 --step-tip:16px;justify-content:center;min-height:50px;padding:10px 28px;
 border-radius:0;background:#e7eae2;color:#45554a;white-space:normal;
 clip-path:polygon(0 0,calc(100% - var(--step-tip)) 0,100% 50%,calc(100% - var(--step-tip)) 100%,0 100%,var(--step-tip) 50%);
}
body[data-brand="prototype-v2"] .step-breadcrumbs button:first-child {
 clip-path:polygon(0 0,calc(100% - var(--step-tip)) 0,100% 50%,calc(100% - var(--step-tip)) 100%,0 100%);
}
body[data-brand="prototype-v2"] .step-breadcrumbs button[aria-current] {background:#1e4d3b;color:#fff;font-weight:600;}
body[data-brand="prototype-v2"] .step-breadcrumbs button[aria-current] b {background:#fff;color:#1e4d3b;}
body[data-brand="prototype-v2"] .step-breadcrumbs button:not(:disabled):not([aria-current]):hover {background:#d5e4d6;color:#1e4d3b;}
body[data-brand="prototype-v2"] .step-breadcrumbs button:focus-visible {outline:0;box-shadow:inset 0 0 0 3px #91aa69;}
body[data-brand="prototype-v2"] footer .analytics-notice {grid-column:1/-1;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0 0;margin:0;color:var(--muted);font-size:11px;line-height:1.7;}
@media(max-width:650px) {
 body[data-brand="prototype-v2"] nav.step-breadcrumbs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;}
 body[data-brand="prototype-v2"] .step-breadcrumbs button {--step-tip:9px;min-width:0;padding:9px 12px;font-size:11px;line-height:1.35;flex-direction:column;gap:5px;}
 body[data-brand="prototype-v2"] .step-breadcrumbs button b {width:20px;height:20px;font-size:11px;}
 body[data-brand="prototype-v2"] .step-breadcrumbs button[data-step="buyers"] {grid-column:1/-1;min-height:40px;}
}

/* One shared content edge, with clear navigation and task-level explanations. */
body[data-brand="prototype-v2"] .app-header {padding:0;display:block;}
.header-inner {max-width:1080px;margin:0 auto;padding:18px 24px 14px;}
.header-inner .header-brand {margin-bottom:16px;}
.step-help {font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.5;}
body[data-brand="prototype-v2"] nav.step-breadcrumbs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
body[data-brand="prototype-v2"] .step-breadcrumbs button {min-width:0;padding:12px 20px;}
body[data-brand="prototype-v2"] .step-breadcrumbs button[data-step="buyers"] {grid-column:1/-1;justify-self:start;}
body[data-brand="prototype-v2"] #step-forward {background:#1e4d3b;color:#fff;border-color:#1e4d3b;}
body[data-brand="prototype-v2"] .stats {grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:20px 0;}
#repair-guidance button {display:inline-block;margin:12px 12px 0 0;font-size:13px;}
@media(max-width:800px){.header-inner{padding:18px 18px 14px;}}
@media(max-width:650px){
 body[data-brand="prototype-v2"] .step-breadcrumbs button {padding:9px 12px;}
 .step-help {font-size:11px;}
 .step-controls {display:grid;grid-template-columns:1fr auto;}
 #step-position {grid-column:2;grid-row:1;}
 #step-forward {grid-column:1/-1;width:100%;}
 body[data-brand="prototype-v2"] .stats {grid-template-columns:repeat(2,minmax(0,1fr));}
}

.welcome-how {grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;}
.optional-label {font-size:13px;font-weight:400;white-space:nowrap;}
#repair-guidance > span {display:block;margin-top:6px;}
@media(max-width:850px){.welcome-how{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.welcome-how{grid-template-columns:1fr;}}

/* 2026-09-26 UX pass */
.analytics-banner {position:fixed;left:18px;bottom:18px;z-index:60;max-width:440px;background:#fff;border:1px solid #c9d9cd;border-radius:14px;padding:16px 18px;box-shadow:0 8px 28px #1e4d3b1f;font-size:13px;line-height:1.5;color:#2b3a34;}
.analytics-banner p {margin:0 0 12px;}
.analytics-banner-actions {display:flex;gap:10px;flex-wrap:wrap;}
.analytics-banner-actions button {font-size:13px;padding:7px 14px;}
.generated-tags span,body[data-brand="prototype-v2"] .stage-auto-tag {background:transparent;border:1px dashed #b9c9bd;color:#5c6b63;}
.tag-group-list {display:grid;gap:12px;margin-top:14px;}
.tag-group {display:flex;gap:12px;align-items:flex-start;cursor:pointer;}
.tag-group input {width:auto;margin-top:4px;flex:0 0 auto;}
.tag-group small {display:block;color:#67645d;margin-top:2px;}
.tag-locked {margin-top:12px;cursor:default;}
@media(max-width:700px){
  body[data-brand="prototype-v2"] #support-open {position:static;display:block;margin:0 auto 24px;}
  .analytics-banner {left:12px;right:12px;bottom:12px;max-width:none;}
  .welcome-copy > p:not(.eyebrow):not(.welcome-lede) {display:none;}
}

/* Set everyone to Undefined, reminder intervals, per-file tags (2026-09-28). */
.undefined-card {border-color:#c9d9cd;}
.undefined-card h2 {margin-top:0;}
.undefined-card .undefined-why {font-weight:400;font-size:15px;line-height:1.6;color:var(--ink);margin:0 0 14px;}
.no-stage-line {margin:12px 0 0;}
.file-tags {margin-top:20px;border-top:1px solid #c9d9cd;padding-top:16px;}
.file-tags h3 {font-size:16px;margin:0 0 4px;}
.file-tags label {display:block;margin:12px 0 0;font-weight:600;overflow-wrap:anywhere;}
.file-tags input {display:block;width:100%;box-sizing:border-box;margin-top:6px;font-weight:400;}
.contact-source {margin:2px 0 8px;color:#67645d;font-size:13px;overflow-wrap:anywhere;}

/* Statuses & tags as two cards (Kyle, 2026-09-29): the reminder schedule once, one
   choice between Undefined and matching stages, and every tag option in one card. */
.status-choice {border:0;margin:0;padding:0;min-width:0;display:grid;gap:12px;}
.status-choice legend {padding:0;margin:0 0 10px;font-weight:600;font-size:16px;color:var(--ink);}
.choice-card {border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--surface);min-width:0;}
.choice-card.is-selected {border-color:var(--brand-teal);box-shadow:inset 0 0 0 1px var(--brand-teal);}
.choice-label {display:flex;gap:12px;align-items:flex-start;padding:14px 16px;margin:0;cursor:pointer;font-weight:400;border-radius:calc(var(--radius-control) - 1px);}
.choice-card.is-selected .choice-label {background:var(--brand-mint-soft);}
.choice-label input[type=radio] {width:18px;height:18px;margin:2px 0 0;flex:0 0 auto;accent-color:var(--brand-teal);}
.choice-text {display:block;min-width:0;}
.choice-text strong {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:15px;color:var(--ink);}
.choice-text small {display:block;margin-top:4px;font-size:14px;line-height:1.5;color:var(--ink-3);}
.choice-badge {font-size:10.5px;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;padding:3px 8px;}
.stage-reset {margin-top:12px;font-size:13px;padding:6px 12px;}
.stage-as-tags {margin:4px 0 12px;}
.no-stage-line {margin:8px 0 0;color:var(--ink-3);font-size:14px;}
/* One section: the stage rows carry each status's cadence, and the summary counts the
   contacts the import file actually holds (Kyle, 2026-09-29 round 2). */
.status-estimate-line {margin:14px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}
.status-estimate {font-size:15px;color:var(--ink);}
.status-estimate.is-stale {color:var(--ink-3);}
.status-estimate-line .stage-reset {margin-top:0;}
.status-caveat {margin:10px 0 0;}
.tags-card h3 {font-size:16px;margin:16px 0 4px;}
.tags-card > h2 + h3 {margin-top:4px;}
.tags-card #global-tag-input {margin-top:6px;}
.tags-card #global-tag-help {margin:8px 0 0;}
.tags-part {margin-top:22px;border-top:1px solid var(--line);padding-top:4px;}
.tags-card .file-tags {margin-top:22px;border-top-color:var(--line);}
@media(max-width:650px){
 .choice-label {padding:12px;}
}

/* One list by HOME status (Kyle, 2026-09-29 round 3): stage rows sit in their status's
   group, CONTACTS and REMINDERS show once per status, and each stage row carries its
   tags. Columns size to their content; the select is as wide as "In Contract". */
.stage-map {margin-top:20px;}
.stage-note {margin:0 0 16px;}
.stage-note p {margin:0 0 8px;}
.status-table {width:100%;border-collapse:collapse;}
.status-table .stage-cell,.status-table .arrow-cell,.status-table .status-pick,.status-table th.status-name,.status-table .summary-count,.status-table .status-cadence {width:1%;}
.status-table .stage-cell strong {white-space:nowrap;}
.status-table .stage-cell strong.stage-long {display:block;white-space:normal;min-width:14em;}
.status-table th,.status-table td {padding:7px 16px 7px 0;border:0;background:none;position:static;width:auto;min-width:0;font-size:14px;font-weight:400;letter-spacing:normal;text-transform:none;color:var(--ink);vertical-align:middle;text-align:left;z-index:auto;}
.status-table thead th {font-size:11.5px;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--ink-3);padding-bottom:8px;white-space:nowrap;}
.status-table tbody {border-top:1px solid #dedbd3;}
.status-table tbody:last-child {border-bottom:1px solid #dedbd3;}
.status-table .stage-cell {overflow-wrap:anywhere;}
.status-table .stage-cell strong {font-weight:600;font-size:14px;}
.status-table .stage-cell small {display:block;font-size:12px;color:var(--ink-3);margin-top:2px;}
.status-table .arrow-cell {color:var(--ink-4);padding-right:12px;}
.status-table th.status-name {font-weight:600;padding-left:11px;white-space:nowrap;}
.status-table .summary-count {text-align:right;font-variant-numeric:tabular-nums;padding-right:20px;}
.status-table .status-cadence {color:var(--ink-3);white-space:nowrap;}
.status-table.is-stale tbody .summary-count {color:var(--ink-5);}
.status-table tr.stage-undefined {background:var(--linen);}
.status-table.no-stages .stage-cell,.status-table.no-stages .arrow-cell,.status-table.no-stages .stage-tags {display:none;}
.status-table.no-stages th.status-name {padding-left:0;}
/* The status select: as wide as its longest option, caret inset from the edge. */
.status-table .status-pick select {-webkit-appearance:none;appearance:none;width:auto;min-width:0;margin:0;padding:7px 36px 7px 10px;font-size:14px;line-height:1.4;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b665c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 10px 6px;cursor:pointer;}
.status-table .stage-tags {width:auto;min-width:240px;padding-right:0;}
.stage-tag-line {display:flex;flex-wrap:wrap;align-items:center;gap:6px;}
.stage-restore {font-size:12px;font-weight:500;padding:3px 10px;min-height:0;border:1px dashed #b9c9bd;border-radius:999px;background:transparent;color:var(--ink-4);}
.stage-restore:hover {color:#5c6b63;background:var(--brand-mint-soft);}
.stage-tag-line .stage-tag-chips {display:contents;}
.stage-tag-line .global-tag-chip {font-size:12px;padding:0 2px 0 10px;}
.stage-tag-line .global-tag-chip button {min-height:26px;padding:2px 6px;font-size:13px;}
.status-table .stage-tags input {width:120px;flex:1 1 120px;min-width:120px;padding:5px 8px;font-size:13px;}
@media(max-width:650px){
 .status-table,.status-table thead,.status-table tbody {display:block;width:100%;}
 .status-table tr {display:grid;grid-template-columns:minmax(0,1fr) 76px 96px;column-gap:8px;row-gap:6px;align-items:center;padding:8px 0;}
 .status-table tr.stage-undefined {padding-left:8px;padding-right:8px;}
 .status-table th,.status-table td {padding:0;font-size:13px;}
 .status-table thead tr {padding:0 0 6px;}
 .status-table thead th {font-size:10.5px;}
 .status-table thead th {display:none;}
 .status-table thead .summary-count {display:block;grid-column:2;grid-row:1;}
 .status-table thead .status-cadence {display:block;grid-column:3;grid-row:1;}
 .status-table.no-stages thead .status-head {display:block;grid-column:1;grid-row:1;}
 .status-table .arrow-cell,.status-table tr.status-plain .stage-cell,.status-table tr.status-plain .stage-tags {display:none;}
 .status-table tr.status-plain th.status-name {grid-column:1;grid-row:1;}
 .status-table tr.status-plain .summary-count {grid-column:2;grid-row:1;}
 .status-table tr.status-plain .status-cadence {grid-column:3;grid-row:1;}
 .status-table th.status-name {padding-left:0;}
 /* A stage row: the stage with its status's count and reminders, then → and the
    status dropdown, then its tags. */
 .status-table tr.status-row .stage-cell {grid-column:1;grid-row:1;max-width:none;}
 .status-table tr.status-row .summary-count {grid-column:2;grid-row:1;}
 .status-table tr.status-row .status-cadence {grid-column:3;grid-row:1;}
 .status-table tr.status-row .status-pick {grid-column:1 / -1;grid-row:2;display:flex;align-items:center;gap:8px;}
 .status-table tr.status-row .status-pick::before {content:'→';color:var(--ink-4);}
 .status-table tr.status-row .stage-tags {grid-column:1 / -1;grid-row:3;min-width:0;}
 .status-table .summary-count {padding-right:0;}
 .status-table .stage-cell strong,.status-table .stage-cell strong.stage-long {font-size:13px;white-space:normal;min-width:0;}
 .status-table .stage-cell,.status-table .status-pick,.status-table th.status-name,.status-table .summary-count,.status-table .status-cadence {width:auto;}
 .status-table .stage-tags input {flex:0 0 120px;min-width:0;}
 .status-table .status-pick select {font-size:13px;padding:6px 32px 6px 9px;background-position:right 12px center;}
}
/* Type floor on the Statuses & tags step (Kyle, 2026-09-29 11:58): the four "Tags CRM
   Better adds for you" items at body size, and nothing on the step smaller than the
   page's fine print (12.5px). */
#statuses .tag-group {font-size:15px;font-weight:400;line-height:1.5;align-items:flex-start;}
#statuses .tag-group strong {display:block;font-size:15px;font-weight:600;color:var(--ink);}
#statuses .tag-group small {display:block;font-size:15px;color:var(--ink-3);margin-top:0;}
#statuses .tag-group input {width:16px;height:16px;margin:4px 0 0;}
#statuses label {font-size:12.5px;}
#statuses input:not([type="checkbox"]):not([type="radio"]) {font-size:14px;}
#statuses .status-table .stage-tags input {font-size:13px;}
#statuses .stage-tag-line .global-tag-chip,#statuses .stage-restore {font-size:12.5px;}
#statuses .status-table .stage-cell small {font-size:12.5px;}
#statuses .status-table thead th {font-size:12.5px;letter-spacing:0.04em;}
#statuses .choice-badge {font-size:12.5px;letter-spacing:0.03em;}
@media(max-width:650px){
 #statuses .status-table thead th {font-size:12.5px;}
 #statuses .status-table th,#statuses .status-table td {font-size:13px;}
}
#statuses .stage-tag-line .stage-restore {min-height:0;height:auto;line-height:1.4;padding:3px 10px;}

/* The CRM wall (Kyle, 2026-10-01): every source we convert, scrolling right to left
   in one muted treatment so no brand shouts, plus the request form for the rest.
   review.js clones the list once for a seamless loop and only then adds .is-moving,
   so without script, and under reduced motion, this is a static row.
   Wide screens put the request link beside the heading; phones put it after the logos,
   where "don't see yours?" makes sense. The head is display:contents so its two
   children can sit in those grid areas. */
.crm-wall {display:grid;grid-template-columns:1fr auto;grid-template-areas:"title link" "logos logos";align-items:baseline;column-gap:20px;margin:40px 0 0;padding:22px 0 4px;border-top:1px solid var(--line);}
.crm-wall-head {display:contents;}
body[data-brand="prototype-v2"] .crm-wall-head h2.eyebrow {grid-area:title;margin:0;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);line-height:1.4;}
body[data-brand="prototype-v2"] .crm-request-link {grid-area:link;justify-self:end;min-height:32px;padding:2px 0;border:0;background:transparent;color:var(--brand-teal);font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
body[data-brand="prototype-v2"] .crm-request-link:hover {color:var(--brand-teal-deep);}
.crm-wall-links {grid-area:link;justify-self:end;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:2px 22px;}
body[data-brand="prototype-v2"] .crm-pages-link {min-height:32px;padding:2px 0;color:var(--brand-teal);font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:3px;}
body[data-brand="prototype-v2"] .crm-pages-link:hover {color:var(--brand-teal-deep);}
.crm-marquee {grid-area:logos;margin-top:14px;overflow:hidden;border-radius:var(--radius-control);-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);}
.crm-marquee:focus-visible {outline:3px solid #7fb59a;outline-offset:3px;}
.crm-track {display:flex;width:max-content;}
.crm-logos {display:flex;align-items:center;gap:52px;margin:0;padding:8px 52px 8px 0;list-style:none;}
.crm-logos li {display:flex;align-items:center;gap:9px;flex:0 0 auto;height:44px;}
.crm-logo {display:block;height:var(--h,26px);width:auto;filter:grayscale(1);opacity:.58;mix-blend-mode:multiply;transition:opacity .2s;}
/* App icons are light artwork; lift them so they read at the same weight as the wordmarks. */
.crm-app-icon {border-radius:22%;filter:grayscale(1) contrast(1.35) brightness(.82);}
.crm-app span {font-size:14px;font-weight:600;color:var(--ink-3);opacity:.85;white-space:nowrap;letter-spacing:-.01em;}
.crm-marquee.is-moving .crm-track {animation:crm-scroll 46s linear infinite;}
.crm-marquee:is(:hover,:focus,:focus-within) .crm-track {animation-play-state:paused;}
.crm-marquee:is(:hover,:focus) .crm-logo {opacity:.72;}
@keyframes crm-scroll {from {transform:translateX(0);} to {transform:translateX(-50%);}}
/* Before the clone exists, and whenever motion is reduced: one centred, wrapping row. */
.crm-marquee:not(.is-moving) {-webkit-mask-image:none;mask-image:none;}
.crm-marquee:not(.is-moving) .crm-track {width:auto;}
.crm-marquee:not(.is-moving) .crm-logos {flex-wrap:wrap;justify-content:center;gap:14px 40px;padding:8px 0;}
.crm-marquee:not(.is-moving) .crm-logos[aria-hidden] {display:none;}
@media (prefers-reduced-motion: reduce) {
 .crm-marquee.is-moving {-webkit-mask-image:none;mask-image:none;}
 .crm-marquee.is-moving .crm-track {animation:none;width:auto;}
 .crm-marquee.is-moving .crm-logos {flex-wrap:wrap;justify-content:center;gap:14px 40px;padding:8px 0;}
 .crm-marquee.is-moving .crm-logos[aria-hidden] {display:none;}
}
@media (max-width:650px) {
 .crm-wall {grid-template-columns:1fr;grid-template-areas:"title" "logos" "link";margin-top:30px;}
 body[data-brand="prototype-v2"] .crm-request-link {justify-self:start;margin-top:10px;}
 .crm-wall-links {justify-self:start;justify-content:flex-start;margin-top:10px;}
 body[data-brand="prototype-v2"] .crm-wall-links .crm-request-link {margin-top:0;}
 .crm-logos {gap:36px;padding-right:36px;}
 .crm-logo {height:calc(var(--h,26px) * .85);}
 .crm-marquee.is-moving .crm-track {animation-duration:38s;}
}
@media (max-width:650px) and (prefers-reduced-motion: reduce) {
 .crm-marquee.is-moving .crm-logos {gap:12px 28px;}
}
#crm-request-dialog {width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;}
#crm-request-dialog::backdrop {background:#173d3666;}
#crm-request-form > label,#crm-request-form > div > label {display:block;margin:14px 0 0;font-weight:600;font-size:14px;color:var(--ink);}
#crm-request-form :is(input[type=text],input[type=email],textarea) {display:block;width:100%;margin-top:6px;font-weight:400;}
#crm-request-form input[type=file] {display:block;width:auto;max-width:100%;margin-top:6px;padding:4px 0;border:0;background:transparent;font-weight:400;}
#crm-request-form textarea {font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:13px;}
#crm-request-form .fine {margin:6px 0 0;}
.crm-request-choice {border:0;margin:18px 0 0;padding:0;min-width:0;display:grid;gap:8px;}
.crm-request-choice legend {padding:0;margin:0 0 8px;font-weight:600;font-size:14px;color:var(--ink);}
#crm-request-form .crm-request-option {display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--surface);cursor:pointer;font-weight:400;}
#crm-request-form .crm-request-option:has(input:checked) {border-color:var(--brand-teal);box-shadow:inset 0 0 0 1px var(--brand-teal);background:var(--brand-mint-soft);}
/* The id outranks the page's mobile rule that stretches every input to full width. */
#crm-request-form .crm-request-option input[type=radio] {width:18px;min-width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;padding:0;accent-color:var(--brand-teal);}
#crm-request-form .crm-request-option > span {flex:1 1 auto;min-width:0;}
#crm-request-form .crm-request-option strong {display:block;font-size:14px;color:var(--ink);}
#crm-request-form .crm-request-option small {display:block;margin-top:2px;font-size:13px;font-weight:400;color:var(--ink-3);}
#crm-request-form .actions {display:flex;justify-content:flex-end;margin-top:18px;}
#crm-request-status {overflow-wrap:anywhere;margin:12px 0 0;}
#crm-request-status.is-error {color:#8a2c0d;}

/* The new-format card on the preview step (review.js, renderUnknownFormats). A card,
   never a modal: it sits above the sample contacts and blocks nothing. */
.unknown-formats {display:grid;gap:12px;margin:0 0 20px;min-width:0;}
.unknown-format-card {min-width:0;padding:16px 18px;border:1px solid var(--line-strong);border-radius:12px;background:var(--brand-mint-soft);color:var(--ink);}
.unknown-format-card h2 {margin:0;font-size:16px;line-height:1.4;color:var(--ink);}
.unknown-format-card p {margin:6px 0 0;}
.unknown-format-card .fine {color:var(--ink-3, var(--muted));}
.unknown-format-actions {display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-top:12px;}
.unknown-format-form {margin-top:14px;padding-top:14px;border-top:1px solid var(--line);}
.unknown-format-form > label {display:block;margin:12px 0 0;font-weight:600;font-size:14px;color:var(--ink);}
.unknown-format-form > label small {display:block;font-weight:400;font-size:13px;color:var(--ink-3, var(--muted));}
.unknown-format-form :is(input[type=text],input[type=email]) {display:block;width:100%;max-width:420px;margin-top:6px;font-weight:400;}
.unknown-format-form > label.unknown-format-toggle {display:flex;gap:10px;align-items:center;font-weight:500;}
.unknown-format-toggle input {width:18px;height:18px;margin:0;accent-color:var(--brand-teal);}
.unknown-format-preview {max-height:320px;margin:8px 0 0;padding:12px;overflow:auto;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;}
.unknown-format-status {margin:10px 0 0;overflow-wrap:anywhere;}
.unknown-format-status.is-error {color:#8a2c0d;}

/* Saved mappings: the offer, the per-file match line and Import/Export on Preview, and
   Export on Download (converter-saved-mapping). */
.saved-mapping {display:grid;gap:10px;margin:0 0 20px;min-width:0;}
.saved-mapping p {margin:0;overflow-wrap:anywhere;}
.saved-mapping-offer,.saved-mapping-report {min-width:0;padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--brand-mint-soft);color:var(--ink);}
.saved-mapping-offer p + p,.saved-mapping-report p + p {margin-top:6px;}
.saved-mapping-actions {display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:10px;}
.saved-mapping-report button.link {margin-top:6px;padding:2px 0;}
.saved-mapping-import {display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:14px;color:var(--ink-3, var(--muted));}
.saved-mapping-import > span {font-weight:600;color:var(--ink);}
.mapping-editor > .mapping-intro {margin:0 0 6px;}
.mapping-editor > .mapping-hint {margin:0;}
.mapping-tools {display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px 24px;margin:16px 0;padding-bottom:16px;border-bottom:1px solid var(--line);}
.mapping-tools #saved-mapping-controls {flex:1 1 350px;gap:8px;margin:0;}
.mapping-tools #reset {flex-shrink:0;margin-left:auto;border-color:var(--green);color:var(--green);background:transparent;}
.mapping-tools #reset:hover {background:var(--brand-mint-soft);}
.mapping-editor .review-grid {margin-top:0;}
.mapping-editor .file-tabs {padding-top:0;}
@media(max-width:540px){
 .mapping-tools #saved-mapping-controls {flex-basis:100%;}
 .mapping-tools .saved-mapping-import > span {flex-basis:100%;}
}
.export-mapping {margin-top:18px;padding-top:16px;border-top:1px solid var(--line);}
.export-mapping h4 {margin:0 0 4px;}
.export-mapping p {overflow-wrap:anywhere;}
/* Optional household review. One couple at a time keeps large exports usable. */
.couple-review { margin: 20px 0; }
.couple-review > summary { cursor: pointer; font-weight: 600; }
.couple-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.couple-people fieldset { min-width: 0; border: 1px solid #d8dedb; border-radius: 10px; padding: 16px; }
.couple-review label { display: grid; gap: 6px; margin: 8px 0; }
.couple-review input, .couple-review select { width: 100%; min-width: 0; box-sizing: border-box; }
.couple-method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; border-bottom: 1px solid #d8dedb; padding: 8px 0; }
.couple-method > span { overflow-wrap: anywhere; }
.couple-review .actions { flex-wrap: wrap; }
@media (max-width: 640px) { .couple-people, .couple-method { grid-template-columns: minmax(0, 1fr); } }

/* Couple review leads Preview and stays compact on a phone. */
.couple-review { border: 2px solid #2e6655; scroll-margin-top: 16px; }
.couple-review > summary { font-size: 18px; }
.couple-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.couple-nav > span { text-align: center; font-size: 13px; }
.couple-nav button { width: auto; min-height: 44px; padding: 8px 10px; }
.couple-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.couple-names label { min-width: 0; }
.couple-method > small { grid-column: 1 / -1; }
.couple-extras { margin-top: 12px; }
.couple-extras > button { display: block; margin-top: 10px; }
@media (max-width: 640px) {
  .couple-people { gap: 8px; margin: 12px 0; }
  .couple-people fieldset { padding: 10px; }
  .couple-review input, .couple-review select { font-size: 16px; min-height: 44px; }
  .couple-method { gap: 4px; }
  .couple-actions { position: sticky; bottom: 8px; z-index: 2; background: #fffdf8; border: 1px solid #d8dedb; border-radius: 10px; padding: 10px; box-shadow: 0 3px 12px #0001; }
}

/* Keep step transitions and phone controls easy to find and tap. */
#step-controls { scroll-margin-top: 16px; }
@media (max-width: 640px) {
  body[data-brand="prototype-v2"] .welcome-grid { gap: 16px; }
  body[data-brand="prototype-v2"] .welcome-copy h1 { font-size: 36px; margin: 12px 0 14px; }
  .welcome-assurances { margin-top: 12px; }
  body[data-brand="prototype-v2"] .welcome-upload .drop { padding: 18px 16px; min-height: 0; }
  .welcome-upload .drop-actions { margin-top: 10px; }
  body[data-brand="prototype-v2"] #statuses .status-table .status-pick select,
  body[data-brand="prototype-v2"] #statuses .status-table .stage-tags input,
  #mapping-editor select, #mapping-editor input:not([type="checkbox"]),
  #buyers input, #buyers textarea, #global-tag-input, #file-tag-list input {
    font-size: 16px; min-height: 44px;
  }
  #statuses .stage-tag-line .global-tag-chip button { min-height: 44px; min-width: 44px; }
  .step summary { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}
.couple-secondary { margin-top: 10px; }
@media (max-width: 640px) {
  .couple-actions { padding: 8px; }
  .couple-actions button { margin: 0; }
}

/* Bounded review list; all ownership decisions remain explicit in the editor. */
.couple-batch { margin:16px 0; padding:12px; border:1px solid #d8dedb; border-radius:10px; }
.couple-batch-tools { display:grid; grid-template-columns:2fr 1fr; gap:12px; }
.couple-batch-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; border-bottom:1px solid #d8dedb; padding:4px 0; }
.couple-batch-row button { text-align:left; overflow-wrap:anywhere; white-space:normal; }
.couple-batch-row button[aria-current=true] { border-color:#2e6655; font-weight:600; }
.couple-batch .actions { margin-top:12px; }
@media (max-width:640px) { .couple-batch-tools,.couple-batch-row { grid-template-columns:minmax(0,1fr); gap:4px; } }

.related-review { margin: 20px 0; }
.related-review > summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.related-on { display: flex; gap: 10px; align-items: center; margin: 12px 0; font-weight: 600; }
.related-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; border-bottom: 1px solid #d8dedb; padding: 8px 0; }
.related-names { display: grid; gap: 4px; }
.related-names input { width: 100%; min-width: 0; box-sizing: border-box; }
.related-notes { display: grid; gap: 2px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .related-row { grid-template-columns: auto minmax(0, 1fr); } .related-notes { grid-column: 1 / -1; } .related-review input { font-size: 16px; min-height: 44px; } }
