@font-face {
  font-family: "Ethos Bodoni";
  src: url("../fonts/2026-09-17-ethos-admin-bodoni-moda-400-r1.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --ethos-ink: #090909;
  --ethos-charcoal: #151515;
  --ethos-paper: #f7f4ee;
  --ethos-paper-light: #fbfaf7;
  --ethos-copy: #4f5054;
  --ethos-muted: #7f7d78;
  --ethos-border: #bbb9b3;
  --ethos-gold: #c9ab6f;
  --ethos-gold-deep: #9a7c44;
  --ethos-gold-line: #b89d66;
  --ethos-error: #a53530;
  --ethos-success: #365b3c;
  --ethos-serif: "Ethos Bodoni", "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --ethos-sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

html.ethos-ops-host,
body.ethos-ops-page,
body.ethos-ops-portal {
  width: auto;
  max-width: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip;
  background: var(--ethos-ink) !important;
}

html.ethos-ops-host {
  margin-top: 0 !important;
  scroll-behavior: smooth;
}

body.ethos-ops-page #wpadminbar,
body.ethos-ops-page #masthead,
body.ethos-ops-page #colophon,
body.ethos-ops-page .site-header,
body.ethos-ops-page .site-footer,
body.ethos-ops-portal #wpadminbar,
body.ethos-ops-portal #masthead,
body.ethos-ops-portal #colophon,
body.ethos-ops-portal .site-header,
body.ethos-ops-portal .site-footer {
  display: none !important;
}

.ethos-ops,
.ethos-ops *,
.ethos-ops *::before,
.ethos-ops *::after {
  box-sizing: border-box;
}

.ethos-ops {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ethos-ink);
  background: var(--ethos-ink);
  font-family: var(--ethos-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ethos-ops [hidden] {
  display: none !important;
}

.ethos-ops button,
.ethos-ops input,
.ethos-ops select {
  margin: 0;
  font: inherit;
}

:where(.ethos-ops) button,
:where(.ethos-ops) input,
:where(.ethos-ops) select {
  color: inherit;
}

.ethos-ops button,
.ethos-ops a,
.ethos-ops input,
.ethos-ops select,
.ethos-ops label {
  -webkit-tap-highlight-color: transparent;
}

.ethos-ops button,
.ethos-ops a {
  touch-action: manipulation;
}

:where(.ethos-ops) a {
  color: inherit;
}

.ethos-ops h1,
.ethos-ops h2,
.ethos-ops p,
.ethos-ops dl,
.ethos-ops dd,
.ethos-ops dt,
.ethos-ops fieldset,
.ethos-ops legend {
  margin: 0;
  padding: 0;
}

.ethos-ops fieldset {
  min-width: 0;
  border: 0;
}

.ethos-ops__status {
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 1000;
  width: min(390px, calc(100vw - 48px));
  padding: 15px 18px;
  color: #fff;
  background: #24221e;
  border: 1px solid var(--ethos-gold);
  box-shadow: 0 18px 55px rgb(0 0 0 / 35%);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ethos-ops__status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ethos-ops__status.is-error {
  background: #5c211f;
  border-color: #d78c83;
}

.ethos-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  min-height: 82px;
  text-decoration: none;
}

.ethos-brand__image {
  display: block;
  width: 104px;
  height: 78px;
  object-fit: contain;
}

.ethos-brand__fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 0.88;
}

.ethos-brand__fallback small {
  margin-top: 6px;
  font-family: var(--ethos-sans);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.ethos-brand.is-fallback .ethos-brand__image {
  display: none;
}

.ethos-brand.is-fallback .ethos-brand__fallback {
  display: flex;
}

.ethos-masthead-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #fff;
  white-space: nowrap;
}

.ethos-masthead-title b {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.26em;
}

.ethos-masthead-title > span {
  width: 74px;
  height: 1px;
  background: var(--ethos-gold);
}

.ethos-text-link {
  width: max-content;
  padding: 0 0 7px;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ethos-gold);
  border-radius: 0;
  font-family: var(--ethos-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.ethos-text-link:hover {
  color: var(--ethos-gold);
}

.ethos-text-link:focus-visible,
.ethos-button:focus-visible,
.ethos-ops input:focus-visible,
.ethos-ops select:focus-visible,
.ethos-mobile-menu:focus-visible,
.ethos-sidebar__item:focus-visible,
.ethos-choice:focus-within,
.ethos-upload:focus-within {
  outline: 2px solid var(--ethos-gold);
  outline-offset: 3px;
}

/* Access state */
.ethos-access {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  background-color: #101011;
  background-image: var(--ethos-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ethos-access__header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  min-height: 118px;
  padding: 0 64px 0 26px;
  background: rgb(10 10 11 / 76%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  backdrop-filter: blur(8px);
}

.ethos-access__header .ethos-text-link {
  justify-self: end;
}

.ethos-access__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: calc(100vh - 118px);
  min-height: calc(100dvh - 118px);
  padding: 61px 9% 58px 7%;
}

.ethos-access__panel {
  width: min(610px, 48vw);
  padding: 72px 52px 67px;
  color: var(--ethos-ink);
  background: rgb(251 250 247 / 97%);
  border: 1px solid var(--ethos-gold);
  box-shadow: 0 35px 110px rgb(0 0 0 / 34%);
}

.ethos-access__panel h1,
.ethos-page-heading h1,
.ethos-commission h2,
.ethos-receipt__identity strong {
  font-family: var(--ethos-serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.ethos-access__panel h1 {
  font-size: clamp(58px, 3.8vw, 64px);
  line-height: 0.94;
}

.ethos-access__panel > p {
  margin-top: 23px;
  color: var(--ethos-copy);
  font-size: clamp(17px, 1.45vw, 22px);
}

.ethos-access__form {
  margin-top: 47px;
}

.ethos-access__form > label,
.ethos-field label,
.ethos-field__label,
.ethos-receipt__identity span,
.ethos-receipt__delivery b,
.ethos-receipt__summary h2,
.ethos-receipt__summary dt {
  display: block;
  color: var(--ethos-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.25;
}

.ethos-password-field {
  position: relative;
  margin-top: 12px;
}

.ethos-password-field input {
  width: 100%;
  height: 65px;
  padding: 0 58px 0 22px;
  background: transparent;
  border: 1px solid var(--ethos-gold-deep);
  border-radius: 0;
  font-size: 20px;
  letter-spacing: 0.2em;
}

.ethos-password-field svg {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #9e9c98;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transform: translateY(-50%);
}

.ethos-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  padding: 15px 26px;
  border-radius: 0;
  font-family: var(--ethos-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.21em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ethos-button--gold {
  color: var(--ethos-ink);
  background: linear-gradient(90deg, #bea063 0%, #d5bb7f 50%, #c4a86e 100%);
  border: 1px solid #c3a566;
}

.ethos-ops a.ethos-button--gold {
  color: var(--ethos-ink);
}

.ethos-button--gold:hover {
  background: linear-gradient(90deg, #d0b372 0%, #e0c98e 50%, #d4b879 100%);
}

.ethos-button--outline {
  color: #fff;
  background: transparent;
  border: 1px solid var(--ethos-gold);
}

.ethos-ops a.ethos-button--outline {
  color: #fff;
}

.ethos-button--outline:hover {
  color: var(--ethos-ink);
  background: var(--ethos-gold);
}

.ethos-ops a.ethos-button--outline:hover {
  color: var(--ethos-ink);
}

.ethos-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.ethos-access__form .ethos-button {
  width: 100%;
  min-height: 66px;
  margin-top: 22px;
  font-size: 17px;
}

.ethos-button__loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ethos-spin 700ms linear infinite;
}

.is-loading .ethos-button__loader {
  display: inline-block;
}

.ethos-access__notice {
  margin-top: 31px !important;
  padding-top: 23px;
  color: #85827d !important;
  border-top: 1px solid var(--ethos-gold-line);
  font-size: 15px !important;
}

.ethos-field-error {
  min-height: 0;
  margin-top: 6px !important;
  color: var(--ethos-error) !important;
  font-size: 12px !important;
  line-height: 1.35;
}

.ethos-field-error:empty {
  display: none;
}

/* Workspace shell */
.ethos-portal {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ethos-ink);
}

.ethos-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  height: 100dvh;
  color: #fff;
  background: linear-gradient(140deg, #161616, #090909);
  border-right: 1px solid rgb(255 255 255 / 11%);
}

.ethos-brand--sidebar {
  width: 100%;
  height: 118px;
  border-bottom: 1px solid rgb(255 255 255 / 11%);
}

.ethos-brand--sidebar .ethos-brand__image {
  width: 90px;
  height: 76px;
}

.ethos-sidebar nav {
  padding-top: 0;
}

.ethos-sidebar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 78px;
  padding: 20px 24px 17px 41px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.ethos-sidebar__item::before {
  position: absolute;
  inset: 0 auto 0 8px;
  width: 4px;
  content: "";
  background: transparent;
}

.ethos-sidebar__item.is-active {
  background: rgb(255 255 255 / 3%);
}

.ethos-sidebar__item.is-active::before {
  background: var(--ethos-gold);
}

.ethos-sidebar__item[aria-disabled="true"] {
  color: rgb(255 255 255 / 77%);
  cursor: default;
}

.ethos-sidebar__item small {
  margin-top: 7px;
  color: var(--ethos-gold);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.ethos-sidebar__mobile-account {
  display: none;
}

.ethos-portal__body {
  min-width: 0;
}

.ethos-portal__header {
  position: relative;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 57px;
  padding: 0 38px;
  color: #fff;
  background: #0d0d0d;
}

.ethos-portal__header .ethos-masthead-title {
  grid-column: 2;
}

.ethos-portal__header .ethos-masthead-title b {
  font-size: 14px;
}

.ethos-portal__header .ethos-masthead-title > span {
  width: 52px;
}

.ethos-admin-menu {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  font-size: 13px;
}

.ethos-admin-menu .ethos-text-link {
  color: #fff;
  font-size: 10px;
}

.ethos-mobile-menu,
.ethos-brand--mobile {
  display: none;
}

.ethos-portal__hero {
  position: relative;
  min-height: 210px;
  background-color: #1b1a18;
  background-image: var(--ethos-hero-image);
  background-position: center 53%;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-portal__hero p {
  position: absolute;
  right: 4.2%;
  bottom: 28px;
  padding-bottom: 12px;
  color: #dfc994;
  border-bottom: 1px solid var(--ethos-gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.7;
}

.ethos-workspace {
  min-height: calc(100vh - 267px);
  min-height: calc(100dvh - 267px);
  background: var(--ethos-paper);
}

.ethos-transaction,
.ethos-receipt {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(350px, 1fr);
  min-height: calc(100vh - 267px);
  min-height: calc(100dvh - 267px);
}

.ethos-transaction__form-panel,
.ethos-receipt__paper {
  min-width: 0;
  padding: 24px 40px 28px;
  background: linear-gradient(110deg, #fbfaf7, #f4f1ea);
}

.ethos-page-heading {
  padding-bottom: 19px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-page-heading h1 {
  font-size: clamp(44px, 3.4vw, 57px);
  line-height: 0.98;
}

.ethos-page-heading p {
  margin-top: 5px;
  color: #5a5a5e;
  font-size: 15px;
}

.ethos-form-section {
  padding: 15px 0 17px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-form-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (min-width: 1041px) {
  .ethos-form-section:nth-of-type(1) {
    min-height: 217px;
  }

  .ethos-form-section:nth-of-type(2) {
    min-height: 207px;
  }

  .ethos-form-section:nth-of-type(3) {
    min-height: 186px;
  }
}

.ethos-form-section legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  color: var(--ethos-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.2;
}

.ethos-form-section legend + * {
  clear: both;
}

.ethos-form-grid {
  display: grid;
  gap: 11px 24px;
}

.ethos-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ethos-form-grid--commission {
  grid-template-columns: 1.2fr 1.05fr 0.95fr;
  align-items: start;
}

.ethos-field--source {
  grid-row: span 2;
}

.ethos-field--full {
  grid-column: 1 / -1;
}

.ethos-field label,
.ethos-field__label {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.ethos-field > label:not(.ethos-upload) > span,
.ethos-field__label > span {
  color: #bb2a28;
}

.ethos-field input:not([type="radio"]):not([type="file"]),
.ethos-field select {
  display: block;
  width: 100%;
  min-height: 52px;
  height: 52px;
  padding: 0 13px;
  color: #303034;
  background-color: rgb(255 255 255 / 50%);
  border: 1px solid #b9b9b8;
  border-radius: 0;
  font-size: 13px;
  outline: none;
}

.ethos-field input::placeholder {
  color: #92908b;
}

.ethos-field select {
  padding-right: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.ethos-field input:not([type="radio"]):not([type="file"]):focus,
.ethos-field select:focus {
  border-color: var(--ethos-gold-deep);
  box-shadow: 0 0 0 1px var(--ethos-gold-deep);
}

.ethos-field input[aria-invalid="true"],
.ethos-field select[aria-invalid="true"],
.ethos-upload-field.has-error .ethos-upload {
  border-color: var(--ethos-error) !important;
}

.ethos-choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ethos-choice {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  height: 43px;
  margin: 0 !important;
  padding: 0 14px;
  color: var(--ethos-ink) !important;
  background: rgb(255 255 255 / 45%);
  border: 1px solid #b9b9b8;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.ethos-choice.is-selected {
  background: #e1d2ae;
  border-color: #e1d2ae;
}

.ethos-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ethos-choice__dot {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 1px solid #868686;
  border-radius: 50%;
}

.ethos-choice.is-selected .ethos-choice__dot {
  background: var(--ethos-ink);
  border-color: var(--ethos-ink);
}

.ethos-choice.is-selected .ethos-choice__dot::after {
  position: absolute;
  inset: 5px;
  content: "";
  background: #fff;
  border-radius: 50%;
}

.ethos-currency-field {
  position: relative;
}

.ethos-currency-field > span {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: #303034;
  font-size: 13px;
  transform: translateY(-50%);
}

.ethos-currency-field input {
  padding-left: 25px !important;
}

.ethos-upload-field__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.ethos-upload-field__input:focus-visible + .ethos-upload,
.ethos-upload__remove:focus-visible,
.ethos-certification:focus-within,
.ethos-signature__alternative:focus-within {
  outline: 2px solid var(--ethos-gold-deep);
  outline-offset: 3px;
}

.ethos-upload {
  position: relative;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  margin: 0 !important;
  padding: 8px 56px 8px 18px;
  color: var(--ethos-ink) !important;
  background: rgb(255 255 255 / 42%);
  border: 1px solid #b9b9b8;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.ethos-upload > svg {
  width: 27px;
  height: 33px;
  fill: none;
  stroke: var(--ethos-ink);
  stroke-width: 1.3;
}

.ethos-upload__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 14px;
}

.ethos-upload__copy b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ethos-upload__copy small {
  margin-top: 2px;
  color: #69686a;
  font-size: 10px;
  line-height: 1.3;
}

.ethos-upload__button {
  padding: 11px 24px;
  border: 1px solid var(--ethos-gold-deep);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.ethos-upload__remove {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 22px;
  height: 22px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ethos-upload__remove::before,
.ethos-upload__remove::after {
  position: absolute;
  top: 10px;
  left: 4px;
  width: 15px;
  height: 1px;
  content: "";
  background: var(--ethos-ink);
  transform: rotate(45deg);
}

.ethos-upload__remove::after {
  transform: rotate(-45deg);
}

.ethos-upload-field {
  position: relative;
}

.ethos-upload-field.has-file .ethos-upload {
  padding-right: 62px;
}

.ethos-upload-field.has-file .ethos-upload__button {
  display: none;
}

.ethos-upload-field.has-error .ethos-upload,
.ethos-certification.has-error,
.ethos-signature.has-error {
  border-color: var(--ethos-error) !important;
  box-shadow: inset 3px 0 0 var(--ethos-error);
}

.ethos-mobile-submit {
  display: none;
}

.ethos-commission {
  min-width: 0;
  padding: 36px 40px 40px;
  color: #fff;
  background: radial-gradient(circle at 70% 12%, #1e1e1d, #101111 68%);
  border-left: 1px solid var(--ethos-gold-line);
}

.ethos-commission h2 {
  font-size: clamp(40px, 3.1vw, 52px);
  line-height: 0.9;
}

.ethos-commission dl {
  margin-top: 37px;
}

.ethos-commission dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 11px 0;
  color: #d8d7d4;
  font-size: 15px;
}

.ethos-commission dt,
.ethos-commission dd {
  min-width: 0;
}

.ethos-commission dd {
  text-align: right;
  white-space: nowrap;
}

.ethos-commission dl > .ethos-commission__net {
  margin-top: 4px;
  padding: 18px 0;
  color: #fff;
  border-top: 1px solid rgb(255 255 255 / 24%);
  font-weight: 600;
}

.ethos-commission dl > .ethos-commission__share {
  margin-top: 4px;
  padding: 17px 0;
  color: var(--ethos-gold);
  border-top: 1px solid var(--ethos-gold-line);
  border-bottom: 1px solid var(--ethos-gold-line);
  font-family: var(--ethos-serif);
  font-size: 24px;
}

.ethos-commission > p {
  margin-top: 36px;
  color: #bbb9b5;
  font-size: 11px;
}

.ethos-commission > .ethos-button {
  width: 100%;
  margin-top: 38px;
}

/* Receipt */
.ethos-receipt__paper {
  padding-top: 25px;
}

.ethos-receipt__identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0;
}

.ethos-receipt__identity > div {
  min-width: 0;
}

.ethos-receipt__identity > div + div {
  padding-left: 54px;
  border-left: 1px solid var(--ethos-gold-line);
}

.ethos-receipt__identity strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  line-height: 1.05;
}

.ethos-receipt__delivery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #c0beb9;
}

.ethos-receipt__delivery > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 85px;
  padding: 14px 20px;
}

.ethos-receipt__delivery > div + div {
  border-left: 1px solid #c0beb9;
}

.ethos-receipt__delivery svg {
  width: 29px;
  height: 34px;
  fill: none;
  stroke: var(--ethos-ink);
  stroke-width: 1.4;
}

.ethos-receipt__delivery p {
  display: flex;
  flex-direction: column;
}

.ethos-receipt__delivery span {
  margin-top: 6px;
  color: #66656a;
  font-size: 10px;
}

.ethos-receipt__summary {
  margin-top: 23px;
}

.ethos-receipt__summary h2 {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-receipt__summary dl > div {
  display: grid;
  grid-template-columns: 32% 68%;
  align-items: baseline;
  min-height: 35px;
  padding: 8px 0 7px;
  border-bottom: 1px solid #c8c6c1;
}

.ethos-receipt__summary dt {
  font-size: 10px;
}

.ethos-receipt__summary dd {
  color: #3f3f43;
  font-size: 13px;
}

.ethos-receipt__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-receipt__footer p {
  color: #747278;
  font-size: 11px;
}

.ethos-receipt__footer i {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 10px -2px;
  background: #aaa7a1;
}

.ethos-receipt__footer .ethos-text-link {
  color: var(--ethos-ink);
  font-size: 9px;
}

.ethos-commission--receipt .ethos-button {
  margin-top: 34px;
}

.ethos-commission--receipt .ethos-button + .ethos-button {
  margin-top: 14px;
}

.ethos-mobile-action {
  display: none;
}

@keyframes ethos-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1240px) {
  .ethos-portal {
    grid-template-columns: 184px minmax(0, 1fr);
  }

  .ethos-form-grid--commission {
    grid-template-columns: 1fr 1fr;
  }

  .ethos-field--source {
    grid-row: auto;
  }

  .ethos-commission {
    padding-inline: 28px;
  }
}

@media (max-width: 1040px) {
  body.ethos-ops-page,
  body.ethos-ops-portal {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .ethos-access__header {
    grid-template-columns: 130px 1fr 130px;
    min-height: 96px;
    padding: 0 22px;
  }

  .ethos-access__header .ethos-masthead-title {
    gap: 18px;
  }

  .ethos-access__header .ethos-masthead-title > span {
    width: 36px;
  }

  .ethos-access__header .ethos-text-link {
    font-size: 9px;
  }

  .ethos-access__stage {
    min-height: calc(100vh - 96px);
    min-height: calc(100dvh - 96px);
    padding: 42px;
  }

  .ethos-access__panel {
    width: min(590px, 68vw);
  }

  .ethos-portal {
    display: block;
  }

  .ethos-sidebar {
    position: fixed;
    top: 96px;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 100;
    width: min(330px, 84vw);
    height: auto;
    border-right: 0;
    border-left: 1px solid var(--ethos-gold-line);
    box-shadow: -24px 30px 60px rgb(0 0 0 / 45%);
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  .ethos-sidebar[aria-hidden="true"] {
    pointer-events: none;
  }

  .ethos-sidebar__mobile-account {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
    padding: 26px 40px 34px;
    color: #fff;
    border-top: 1px solid rgb(255 255 255 / 10%);
    font-size: 13px;
  }

  .ethos-sidebar__mobile-account .ethos-text-link {
    color: #fff;
  }

  .ethos-sidebar.is-open {
    display: flex;
    flex-direction: column;
  }

  .ethos-sidebar.is-open {
    transform: translateX(0);
  }

  .ethos-brand--sidebar {
    display: none;
  }

  .ethos-portal__header {
    grid-template-columns: 96px 1fr 96px;
    height: 96px;
    padding: 0 26px;
  }

  .ethos-brand--mobile {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    width: 84px;
    min-height: 74px;
  }

  .ethos-brand--mobile .ethos-brand__image {
    width: 72px;
    height: 63px;
  }

  .ethos-portal__header .ethos-masthead-title {
    grid-column: 2;
    grid-row: 1;
  }

  .ethos-portal__header .ethos-masthead-title b {
    font-size: 17px;
  }

  .ethos-portal__header .ethos-masthead-title > span {
    width: 64px;
  }

  .ethos-admin-menu {
    display: none;
  }

  .ethos-mobile-menu {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
    justify-self: end;
    gap: 8px;
    width: 45px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .ethos-mobile-menu span {
    display: block;
    width: 43px;
    height: 2px;
    background: var(--ethos-gold);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .ethos-mobile-menu[aria-expanded="true"] span:first-child {
    transform: translateY(10px) rotate(45deg);
  }

  .ethos-mobile-menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .ethos-mobile-menu[aria-expanded="true"] span:last-child {
    transform: translateY(-10px) rotate(-45deg);
  }

  .ethos-portal__hero {
    min-height: 164px;
    background-position: center 56%;
  }

  .ethos-portal__hero p {
    right: 6%;
    bottom: 24px;
  }

  .ethos-workspace {
    min-height: 0;
  }

  .ethos-transaction,
  .ethos-receipt {
    display: block;
    min-height: 0;
  }

  .ethos-transaction__form-panel,
  .ethos-receipt__paper {
    padding: 27px clamp(24px, 8vw, 68px) 18px;
  }

  .ethos-page-heading {
    padding-bottom: 18px;
  }

  .ethos-page-heading h1 {
    font-size: clamp(45px, 7.1vw, 62px);
  }

  .ethos-page-heading p {
    font-size: clamp(15px, 2.6vw, 19px);
  }

  .ethos-form-section {
    padding: 17px 0;
  }

  .ethos-form-section legend {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .ethos-form-grid--two,
  .ethos-form-grid--commission {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .ethos-field label,
  .ethos-field__label {
    font-size: 11px;
  }

  .ethos-field input:not([type="radio"]):not([type="file"]),
  .ethos-field select {
    min-height: 52px;
    height: 52px;
    font-size: 15px;
  }

  .ethos-choice {
    height: 47px;
    font-size: 15px !important;
  }

  .ethos-upload {
    min-height: 62px;
  }

  .ethos-commission {
    padding: 25px clamp(24px, 8vw, 68px) 92px;
    border-top: 1px solid var(--ethos-gold-line);
    border-left: 0;
  }

  .ethos-commission h2 {
    font-size: 38px;
  }

  .ethos-commission dl {
    margin-top: 9px;
  }

  .ethos-commission dl > div {
    padding: 6px 0;
    font-size: 16px;
  }

  .ethos-commission dl > .ethos-commission__net {
    padding: 10px 0;
  }

  .ethos-commission dl > .ethos-commission__share {
    padding: 10px 0;
    font-size: 24px;
  }

  .ethos-commission > p {
    margin-top: 10px;
  }

  .ethos-commission > .ethos-button {
    margin-top: 13px;
  }

  .ethos-mobile-action {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(190px, 1.65fr);
    gap: 30px;
    align-items: center;
    min-height: 84px;
    padding: 12px max(20px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
    color: #fff;
    background: rgb(12 12 12 / 96%);
    border-top: 1px solid rgb(255 255 255 / 16%);
    box-shadow: 0 -10px 34px rgb(0 0 0 / 28%);
    backdrop-filter: blur(12px);
  }

  .ethos-mobile-action > div {
    padding-right: 25px;
    border-right: 1px solid var(--ethos-gold-line);
  }

  .ethos-mobile-action span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .ethos-mobile-action strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .ethos-mobile-action .ethos-button {
    width: 100%;
  }

  .ethos-receipt__identity strong {
    font-size: 23px;
  }

  .ethos-receipt__footer {
    margin-bottom: 24px;
  }

  .ethos-commission--receipt {
    padding-bottom: 40px;
  }
}

@media (max-width: 680px) {
  .ethos-access__header {
    grid-template-columns: 82px 1fr 42px;
    min-height: 82px;
    padding: 0 14px;
  }

  .ethos-access__header .ethos-brand {
    width: 74px;
    min-height: 64px;
  }

  .ethos-access__header .ethos-brand__image {
    width: 70px;
    height: 58px;
  }

  .ethos-access__header .ethos-masthead-title {
    gap: 11px;
  }

  .ethos-access__header .ethos-masthead-title b {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .ethos-access__header .ethos-masthead-title > span {
    width: 20px;
  }

  .ethos-access__header .ethos-text-link {
    width: 34px;
    height: 34px;
    overflow: hidden;
    color: transparent;
    border: 0;
  }

  .ethos-access__header .ethos-text-link::after {
    position: absolute;
    top: 31px;
    right: 18px;
    width: 22px;
    height: 17px;
    content: "";
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
  }

  .ethos-access__stage {
    align-items: flex-end;
    min-height: calc(100vh - 82px);
    min-height: calc(100dvh - 82px);
    padding: 28px 18px;
  }

  .ethos-access__panel {
    width: 100%;
    padding: 36px 25px 28px;
  }

  .ethos-access__panel h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .ethos-access__panel > p {
    font-size: 16px;
  }

  .ethos-access__form {
    margin-top: 30px;
  }

  .ethos-password-field input,
  .ethos-access__form .ethos-button {
    height: 57px;
    min-height: 57px;
  }

  .ethos-portal__header {
    grid-template-columns: 72px 1fr 54px;
    height: 82px;
    padding: 0 14px;
  }

  .ethos-sidebar {
    top: 82px;
  }

  .ethos-brand--mobile {
    width: 68px;
  }

  .ethos-brand--mobile .ethos-brand__image {
    width: 62px;
    height: 55px;
  }

  .ethos-portal__header .ethos-masthead-title {
    gap: 13px;
  }

  .ethos-portal__header .ethos-masthead-title b {
    font-size: 13px;
    letter-spacing: 0.2em;
  }

  .ethos-portal__header .ethos-masthead-title > span {
    width: 31px;
  }

  .ethos-mobile-menu {
    width: 38px;
    gap: 6px;
  }

  .ethos-mobile-menu span {
    width: 37px;
  }

  .ethos-mobile-menu[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .ethos-mobile-menu[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  .ethos-portal__hero {
    min-height: 140px;
  }

  .ethos-portal__hero p {
    right: 18px;
    bottom: 17px;
    font-size: 8px;
  }

  .ethos-transaction__form-panel,
  .ethos-receipt__paper,
  .ethos-commission {
    padding-right: 24px;
    padding-left: 24px;
  }

  .ethos-page-heading h1 {
    font-size: clamp(41px, 12vw, 54px);
  }

  .ethos-choice-group {
    gap: 10px;
  }

  .ethos-upload {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px 44px 12px 12px;
  }

  .ethos-upload__button {
    grid-column: 1 / -1;
    margin-top: 9px;
    text-align: center;
  }

  .ethos-upload-field.has-file .ethos-upload {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ethos-upload__remove {
    right: 14px;
    bottom: 25px;
  }

  .ethos-commission dl > div {
    gap: 12px;
    font-size: 14px;
  }

  .ethos-mobile-action {
    grid-template-columns: 0.85fr 1.35fr;
    gap: 14px;
    min-height: 76px;
    padding-inline: 16px;
  }

  .ethos-mobile-action > div {
    padding-right: 12px;
  }

  .ethos-mobile-action strong {
    font-size: 15px;
  }

  .ethos-mobile-action .ethos-button {
    min-height: 48px;
    padding-inline: 14px;
  }

  .ethos-receipt__identity,
  .ethos-receipt__delivery {
    grid-template-columns: 1fr;
  }

  .ethos-receipt__identity {
    gap: 18px;
  }

  .ethos-receipt__identity > div + div {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--ethos-gold-line);
    border-left: 0;
  }

  .ethos-receipt__delivery > div + div {
    border-top: 1px solid #c0beb9;
    border-left: 0;
  }

  .ethos-receipt__summary dl > div {
    grid-template-columns: 40% 60%;
  }

  .ethos-receipt__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ethos-receipt__footer i {
    display: none;
  }

  .ethos-receipt__footer p span {
    display: block;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ethos-ops-host {
    scroll-behavior: auto;
  }

  .ethos-ops *,
  .ethos-ops *::before,
  .ethos-ops *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/*
 * Keep portal dropdowns legible when the brokerage theme loads after this
 * stylesheet. The theme also uses `.ethos-form-grid` for dark lead forms and
 * otherwise turns these light-panel selects into white-on-white controls.
 */
.ethos-ops .ethos-field select {
  min-height: 52px;
  height: 52px;
  padding: 0 46px 0 14px;
  color: #303034;
  background-color: #fffdf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
  border: 1px solid #aaa79f;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 35%);
  -webkit-appearance: none;
  appearance: none;
}

.ethos-ops .ethos-field select option {
  color: #171719;
  background: #fffdf8;
}

.ethos-ops .ethos-field select:focus {
  border-color: var(--ethos-gold-deep);
  box-shadow: 0 0 0 2px rgb(167 128 53 / 20%);
}

.ethos-profiles { min-width: 0; padding: 32px clamp(28px, 3.6vw, 58px) 56px; background: #fff; }
.ethos-profiles > .ethos-page-heading, .ethos-profiles > .ethos-profiles__notice, .ethos-profiles > .ethos-profiles__layout { width: 100%; max-width: 1380px; margin-inline: auto; }
.ethos-profiles > .ethos-page-heading { margin-bottom: 22px; }
.ethos-ops .ethos-profiles__notice { display: flex; gap: 14px; align-items: center; margin: 0 auto 22px; padding: 15px 18px; background: #f1ebdc; border-left: 4px solid var(--ethos-gold-deep); color: var(--ethos-ink); }
.ethos-profiles__notice strong { flex: 0 0 auto; }
.ethos-profiles__layout { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ethos-profiles__list, .ethos-profiles__detail { min-width: 0; padding: 24px; background: var(--ethos-paper-light); border: 1px solid #ddd5c5; }
.ethos-profiles__back { display: none; margin: 0 0 17px; }
.ethos-profiles__section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.ethos-profiles__section-heading h2, .ethos-profiles__detail h2 { margin: 0; font: 400 clamp(29px, 3vw, 42px)/1.08 var(--ethos-serif); }
.ethos-profiles__section-heading p { margin: 5px 0 0; color: var(--ethos-copy); }
.ethos-profiles__filters, .ethos-profiles__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ethos-profiles__filters { grid-template-columns: 1fr; margin-bottom: 14px; }
.ethos-profiles label { display: grid; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.ethos-profiles label span { color: var(--ethos-error); }
.ethos-profiles input:not([type="checkbox"]), .ethos-profiles select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #c5beb0; border-radius: 0; background: #fff; color: var(--ethos-ink); font: 400 15px/1.3 var(--ethos-sans); letter-spacing: 0; }
.ethos-profiles input:focus-visible, .ethos-profiles select:focus-visible, .ethos-profiles button:focus-visible { outline: 3px solid var(--ethos-gold); outline-offset: 2px; }
.ethos-profiles__message { margin: 12px 0; color: var(--ethos-copy); font-size: 14px; }
.ethos-profiles__agent { display: grid; width: 100%; gap: 4px; padding: 13px 12px; border: 0; border-bottom: 1px solid #ded6c7; background: transparent; color: var(--ethos-ink); text-align: left; cursor: pointer; }
.ethos-profiles__agent:hover, .ethos-profiles__agent.is-active { background: #eee5d1; }
.ethos-profiles__agent strong { font-size: 16px; }
.ethos-profiles__agent span { font-size: 13px; color: var(--ethos-copy); }
.ethos-profiles__status, .ethos-profiles__badge { display: inline-flex; padding: 3px 8px; border-radius: 2px; background: #ece7d9; color: #504328; font-size: 12px; font-weight: 700; }
.ethos-profiles__status--active { background: #e3f1e3; color: #22502a; }
.ethos-profiles__status--onboarding { background: #e9eef8; color: #294875; }
.ethos-profiles__status--inactive { background: #f4ead5; color: #694d12; }
.ethos-profiles__status--departed { background: #ededed; color: #525252; }
.ethos-profiles__create { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ethos-gold-line); }
.ethos-profiles__create h3, .ethos-profiles__detail h3 { margin: 0; font: 400 25px/1.15 var(--ethos-serif); }
.ethos-profiles__create p { margin: 0; color: var(--ethos-copy); font-size: 14px; }
.ethos-profiles__create .ethos-button, .ethos-profiles__detail .ethos-button { min-width: 0; width: fit-content; }
.ethos-profiles__detail h3 { margin: 27px 0 12px; padding-top: 18px; border-top: 1px solid var(--ethos-gold-line); }
.ethos-profiles__markets { display: grid; gap: 11px; }
.ethos-profiles__market-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr); gap: 14px; align-items: center; padding: 11px 12px; border: 1px solid #dfd6c5; }
.ethos-profiles__market-row > label:first-child, .ethos-profiles__checks label { display: flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: 0; }
.ethos-profiles input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ethos-gold-deep); }
.ethos-profiles__checks { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 22px 0; }
.ethos-profiles__offboarding > p { margin: 0 0 14px; color: var(--ethos-copy); font-size: 13px; line-height: 1.5; }
.ethos-profiles__offboarding-row { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(150px, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ethos-gold-line); }
.ethos-profiles__offboarding-row label { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.ethos-profiles__offboarding-row input[type="text"] { min-width: 0; width: 100%; }
.ethos-ops .ethos-plan-reference { min-width: 0; padding: 17px 19px; border-left: 4px solid var(--ethos-gold-deep); background: #f3eddf; color: var(--ethos-ink); }
.ethos-ops .ethos-plan-reference.is-unverified { border-left-color: #9b6535; background: #f8efe4; }
.ethos-plan-reference > strong { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .16em; }
.ethos-plan-reference dl { display: grid; gap: 8px; margin: 0; }
.ethos-plan-reference dl > div { display: grid; grid-template-columns: minmax(130px, 28%) minmax(0, 1fr); gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #d7cbb4; }
.ethos-plan-reference dt { color: #625849; font-size: 13px; }
.ethos-plan-reference dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.ethos-ops .ethos-plan-reference p { margin: 0; font-size: 14px; line-height: 1.5; }
.ethos-ops .ethos-plan-reference .ethos-plan-reference__attention { margin-top: 11px; font-weight: 600; }
@media (max-width: 900px) { .ethos-profiles { padding: 26px 20px 44px; } .ethos-profiles__layout { grid-template-columns: 1fr; } .ethos-profiles__list, .ethos-profiles__detail { padding: 18px; } .ethos-profiles__back { display: inline-flex; } .ethos-profiles:not(.is-detail-open) .ethos-profiles__detail, .ethos-profiles.is-detail-open .ethos-profiles__list { display: none; } }
@media (max-width: 580px) { .ethos-profiles { padding: 22px 16px 38px; } .ethos-ops .ethos-profiles__notice { display: grid; } .ethos-profiles__fields, .ethos-profiles__market-row, .ethos-profiles__offboarding-row, .ethos-plan-reference dl > div { grid-template-columns: 1fr; } .ethos-plan-reference dl > div { gap: 2px; } .ethos-profiles__create .ethos-button, .ethos-profiles__detail .ethos-button { width: 100%; } }

/* All Markets uses the existing Ethos paper, ink, and gold vocabulary. */
.ethos-sidebar {
  overflow-y: auto;
}

.ethos-overview {
  min-height: calc(100dvh - 267px);
  padding: 26px 40px 48px;
  background: var(--ethos-paper-light);
}

.ethos-overview__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.ethos-overview__heading .ethos-text-button {
  min-height: 44px;
  flex: 0 0 auto;
}

.ethos-overview__status {
  min-height: 24px;
  margin: 18px 0 12px;
  color: var(--ethos-copy);
  font-size: 14px;
  line-height: 1.5;
}

.ethos-overview__table-wrap {
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-overview__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ethos-overview__table th,
.ethos-overview__table td {
  padding: 19px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #d6d0c4;
}

.ethos-overview__table thead th {
  padding-top: 13px;
  padding-bottom: 13px;
  color: #665941;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ethos-overview__table thead th:first-child,
.ethos-overview__table tbody th {
  width: 21%;
  padding-left: 0;
}

.ethos-overview__mobile-label {
  display: none;
}

.ethos-overview__table tbody th strong {
  display: block;
  color: var(--ethos-ink);
  font-family: var(--ethos-serif);
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.08;
}

.ethos-overview__table tbody th small {
  display: block;
  margin-top: 5px;
  color: var(--ethos-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
}

.ethos-overview__count {
  display: block;
  color: var(--ethos-ink);
  font-family: var(--ethos-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.ethos-overview__open {
  display: block;
  min-height: 44px;
  margin: 6px 0 -9px -6px;
  padding: 10px 6px;
  color: #625035;
  background: transparent;
  border: 0;
  font-family: var(--ethos-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ethos-overview__open:hover,
.ethos-overview__open:focus-visible {
  color: var(--ethos-ink);
  background: #f0e9da;
  outline: 2px solid var(--ethos-gold-line);
  outline-offset: 2px;
}

.ethos-overview__unavailable {
  display: inline-block;
  padding-top: 7px;
  color: var(--ethos-muted);
  font-size: 13px;
}

.ethos-overview__overdue,
.ethos-overview__muted {
  display: block;
  margin-top: 8px;
  color: var(--ethos-error);
  font-size: 12px;
  line-height: 1.35;
}

.ethos-overview__muted {
  color: var(--ethos-muted);
}

.ethos-overview__updated {
  margin-top: 18px;
  color: var(--ethos-muted);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .ethos-overview__table-wrap { border-top: 0; }
  .ethos-overview__table,
  .ethos-overview__table tbody { display: block; }
  .ethos-overview__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ethos-overview__table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
    padding: 8px 18px 14px;
    border: 1px solid #d6d0c4;
    background: #fff;
  }
  .ethos-overview__table tbody th {
    grid-column: 1 / -1;
    width: auto;
  }
  .ethos-overview__table tbody td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
  }
  .ethos-overview__mobile-label {
    display: block;
    margin-bottom: 10px;
    color: #665941;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.35;
    text-transform: uppercase;
  }
}

@media (max-width: 650px) {
  .ethos-overview { padding: 22px 18px 36px; }
  .ethos-overview__heading { align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; }
  .ethos-overview__heading .ethos-text-button { padding-right: 0; }
  .ethos-overview__table tbody tr { grid-template-columns: 1fr; }
  .ethos-overview__table tbody th,
  .ethos-overview__table tbody td { padding-right: 0; padding-left: 0; }
}

@media print {
  .ethos-sidebar,
  .ethos-portal__header,
  .ethos-portal__hero,
  .ethos-mobile-action,
  .ethos-commission .ethos-button {
    display: none !important;
  }

  .ethos-portal,
  .ethos-receipt {
    display: block;
  }

  .ethos-receipt__paper,
  .ethos-commission {
    break-inside: avoid;
  }
}

/* Prospective-market checklist: deliberately uses the existing Ethos shell. */
.ethos-launch {
  --launch-line: #d9d0be;
  min-width: 0;
  min-height: calc(100dvh - 233px);
  padding: 32px clamp(28px, 3.6vw, 58px) 64px;
  background: #fff;
  color: #1a1a1a;
}

#ethos-launch-overview,
#ethos-launch-detail {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
}

.ethos-launch__heading,
.ethos-launch__detail-heading {
  margin-bottom: 22px;
}

.ethos-ops .ethos-launch__notice {
  margin: 0 0 24px;
  padding: 15px 19px;
  border-left: 4px solid var(--ethos-gold-deep);
  background: #f3eddf;
  color: #38352f;
  line-height: 1.5;
}

.ethos-launch__create {
  display: flex;
  align-items: end;
  gap: 14px;
  max-width: 620px;
  margin-bottom: 7px;
}

.ethos-launch__create .ethos-field {
  flex: 1;
}

.ethos-launch__create .ethos-button {
  min-height: 54px;
  white-space: nowrap;
}

.ethos-ops .ethos-launch__status {
  min-height: 24px;
  margin: 19px 0;
  color: var(--ethos-copy);
}

.ethos-launch__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ethos-launch__card {
  min-width: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--launch-line);
}

.ethos-launch__card-top,
.ethos-launch__card > h2,
.ethos-launch__card > p {
  margin-bottom: 15px;
}

.ethos-launch__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ethos-launch__card-top > span:first-child {
  color: var(--ethos-gold-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
}

.ethos-launch__card h2,
.ethos-launch__activity h2 {
  font-family: var(--ethos-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
}

.ethos-launch__card p {
  color: var(--ethos-copy);
}

.ethos-launch__card .ethos-button {
  width: 100%;
}

.ethos-launch__progress {
  height: 7px;
  margin-bottom: 22px;
  background: #ece8e0;
  overflow: hidden;
}

.ethos-launch__progress > span {
  display: block;
  height: 100%;
  background: var(--ethos-gold-deep);
}

.ethos-launch__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 10px;
  background: #ece8e0;
  color: #41403d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}

.ethos-launch__badge--in_progress { background: #e7edec; color: #275156; }
.ethos-launch__badge--blocked { background: #f4e7d9; color: #7d4525; }
.ethos-launch__badge--complete,
.ethos-launch__badge--checklist_complete { background: #e2eddf; color: #2e5a36; }

.ethos-launch__items {
  display: grid;
  gap: 12px;
  margin-bottom: 38px;
}

.ethos-launch__item {
  background: #fff;
  border: 1px solid var(--launch-line);
}

.ethos-launch__item[open] { border-color: var(--ethos-gold-deep); }
.ethos-launch__item--blocked { border-left: 4px solid #a7693e; }
.ethos-launch__item--complete { border-left: 4px solid #5b805d; }

.ethos-launch__item > summary {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
}

.ethos-launch__item > summary::-webkit-details-marker { display: none; }
.ethos-launch__item > summary::after {
  content: "+";
  margin-left: 0;
  color: var(--ethos-gold-deep);
  font-size: 28px;
  font-weight: 300;
}
.ethos-launch__item[open] > summary::after { content: "−"; }

.ethos-launch__item-number {
  flex: 0 0 38px;
  color: var(--ethos-gold-deep);
  font-family: var(--ethos-serif);
  font-size: 29px;
}

.ethos-launch__item-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
}

.ethos-launch__item form {
  padding: 0 22px 22px 78px;
}

.ethos-launch__item .ethos-field textarea {
  display: block;
  width: 100%;
  min-height: 98px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--ethos-border);
  color: var(--ethos-ink);
  font: inherit;
  resize: vertical;
}

.ethos-launch__item .ethos-field textarea:focus-visible,
.ethos-launch__item > summary:focus-visible,
.ethos-launch__event summary:focus-visible {
  outline: 3px solid var(--ethos-gold-deep);
  outline-offset: 2px;
}

.ethos-launch__notes { grid-column: 1 / -1; }
.ethos-launch__item .ethos-field-error { margin: 7px 0 12px; }
.ethos-launch__item .ethos-button { min-width: 200px; }

.ethos-launch__activity {
  padding: 27px;
  background: #fff;
  border: 1px solid var(--launch-line);
}

.ethos-launch__activity > p {
  margin: 7px 0 23px;
  color: var(--ethos-copy);
}

.ethos-launch__activity h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ethos-launch__completed {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  padding: 13px 0;
  border-top: 1px solid var(--launch-line);
}

.ethos-launch__completed strong { flex: 1; min-width: 160px; }
.ethos-launch__completed small { color: var(--ethos-copy); }
.ethos-launch__completed .ethos-text-button { margin-left: auto; }

#ethos-launch-completed:not(:empty) { margin-bottom: 30px; }

.ethos-launch__event {
  padding: 17px 0;
  border-top: 1px solid var(--launch-line);
}

.ethos-launch__event > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.ethos-launch__event > div:first-child > span {
  color: var(--ethos-copy);
  font-size: 13px;
  text-align: right;
}

.ethos-launch__event details { margin-top: 8px; }
.ethos-launch__event summary {
  width: fit-content;
  color: var(--ethos-gold-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.ethos-launch__event dl { margin-top: 12px; }
.ethos-launch__event dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 7px 0; }
.ethos-launch__event dt { color: var(--ethos-copy); }
.ethos-launch__event dd { min-width: 0; overflow-wrap: anywhere; }
.ethos-launch__event dd span { color: var(--ethos-muted); }
.ethos-launch__activity > .ethos-text-button { margin-top: 18px; }

@media (max-width: 1040px) {
  .ethos-launch { min-height: 0; padding: 30px clamp(24px, 7vw, 64px) 48px; }
}

@media (max-width: 760px) {
  .ethos-launch { padding: 26px 20px 44px; }
  .ethos-launch__cards { grid-template-columns: 1fr; }
  .ethos-launch__create { align-items: stretch; flex-direction: column; }
  .ethos-launch__create .ethos-button { width: 100%; }
  .ethos-launch__item > summary { flex-wrap: wrap; gap: 8px 12px; padding: 15px; }
  .ethos-launch__item-title { flex-basis: calc(100% - 50px); }
  .ethos-launch__item > summary::after { margin-left: auto; }
  .ethos-launch__item form { padding: 0 15px 18px; }
  .ethos-launch__item .ethos-button { width: 100%; }
  .ethos-launch__event > div:first-child { flex-direction: column; gap: 4px; }
  .ethos-launch__event > div:first-child > span { text-align: left; }
  .ethos-launch__completed small { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .ethos-launch { padding: 22px 16px 38px; }
  .ethos-launch__card,
  .ethos-launch__activity { padding: 18px; }
  .ethos-launch__event dl > div { grid-template-columns: 1fr; gap: 1px; }
  .ethos-launch__badge { font-size: 11px; }
}

/* Markets settings: focused sections and explicit readiness while preserving the portal shell. */
.ethos-markets { --market-gold: #9f7735; --market-line: #d4b47b; min-width: 0; min-height: calc(100dvh - 233px); padding: 32px clamp(28px, 3.6vw, 58px) 64px; background: #fff; color: #1a1a1a; }
.ethos-markets__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.ethos-markets .ethos-page-heading { border-bottom-color: var(--market-line); }
.ethos-markets .ethos-page-heading h1 { font-size: clamp(52px, 4.6vw, 70px); }
.ethos-markets .ethos-page-heading p { margin-top: 4px; color: #4e5662; font-size: 18px; }
.ethos-ops .ethos-market-notice { margin: 20px 0 24px; padding: 17px 22px; border: 1px solid #ddcfb8; border-left: 4px solid var(--market-gold); background: #fff; color: #39404a; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.ethos-markets__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.ethos-market-card { min-width: 0; display: flex; flex-direction: column; padding: 28px 30px 24px; background: #fff; border: 1px solid var(--market-line); }
.ethos-market-card > header { border-bottom: 1px solid var(--market-line); padding-bottom: 12px; }
.ethos-market-card > header > span { font-size: 14px; letter-spacing: .17em; color: var(--market-gold); font-weight: 700; }
.ethos-market-card h2, .ethos-market-editor h2 { margin: 3px 0 0; font-family: var(--ethos-serif); font-size: clamp(42px, 3.1vw, 52px); line-height: 1.05; font-weight: 400; letter-spacing: -.04em; }
.ethos-market-card__readiness { margin: 14px 0 16px; font-size: 16px; }
.ethos-market-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.ethos-market-status dt { display: flex; align-items: center; gap: 14px; color: #39404a; }
.ethos-market-status dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.ethos-market-status--ready dd { color: #17632b; }
.ethos-market-status--review dd { color: #965b00; }
.ethos-market-status__icon { width: 29px; height: 29px; display: inline-grid; place-items: center; flex: 0 0 29px; color: #fff; background: #2b7040; border-radius: 50%; font-size: 18px; font-weight: 700; line-height: 1; }
.ethos-market-status--review .ethos-market-status__icon { background: #a8741a; clip-path: polygon(50% 0,100% 90%,96% 100%,4% 100%,0 90%); border-radius: 0; font-size: 18px; padding-top: 5px; }
.ethos-market-gaps { margin: 0 0 14px; color: #664719; font-size: 15px; line-height: 1.5; }
.ethos-market-gaps summary, .ethos-market-offices--legacy summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.ethos-market-gaps summary::after, .ethos-market-offices--legacy summary::after { content: '⌄'; margin-left: 8px; color: #805a26; font-size: 20px; line-height: 1; }
.ethos-market-gaps ul { margin: 5px 0 0; padding-left: 24px; }
.ethos-market-gaps li, .ethos-market-offices li, .ethos-market-editor__actions p { overflow-wrap: anywhere; }
.ethos-market-offices { margin: auto 0 20px; padding-top: 16px; border-top: 1px solid #dfd2bd; }
.ethos-market-offices h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.ethos-market-offices ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ethos-market-offices li { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.ethos-market-offices li strong { font-weight: 500; }
.ethos-market-offices span, .ethos-market-offices small, .ethos-market-offices p { color: #5a5d62; font-size: 15px; }
.ethos-market-offices--legacy { margin-top: 0; border-top: 0; }
.ethos-ops .ethos-market-card__button { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 60px; padding: 12px 20px; border: 1px solid #9d7639; background: #9d7639; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: none; }
.ethos-market-card__button span { font-size: 27px; font-weight: 400; line-height: 1; }
.ethos-ops .ethos-market-card__button:hover { background: #775724; color: #fff; }
.ethos-market-card__actions { display: grid; gap: 9px; }
.ethos-ops .ethos-market-card__recruit { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 54px; padding: 10px 20px; border: 1px solid #9d7639; background: #fff; color: #60451d; font-size: 17px; font-weight: 600; letter-spacing: .02em; text-align: left; text-transform: none; }
.ethos-ops .ethos-market-card__recruit:hover { background: #fbf6ed; color: #4e3514; }
.ethos-market-card__recruit span { font-size: 25px; font-weight: 400; line-height: 1; }
.ethos-market-card__admin-note { margin: 2px 0 0; padding: 9px 0; color: #62666e; font-size: 14px; line-height: 1.4; }
.ethos-market-editor { min-width: 0; padding: 0; background: #fff; scroll-margin-top: 22px; }
.ethos-market-back { min-height: 44px; margin: 0 0 4px; padding: 0; border: 0; background: transparent; color: #94621e; font: 500 16px var(--ethos-sans); cursor: pointer; }
.ethos-market-editor__heading p { margin: 7px 0 0; color: #4e5662; font-size: 18px; }
#ethos-market-editor-version { display: block; margin: 4px 0 0; color: #656870; font-size: 13px; }
.ethos-market-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 18px; padding-bottom: 17px; border-bottom: 1px solid var(--market-line); }
.ethos-market-steps button { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 0; border: 0; background: transparent; color: #59616e; font: 500 15px var(--ethos-sans); text-align: left; cursor: pointer; }
.ethos-market-steps button span { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 40px; border-radius: 50%; background: #ebeced; color: #3a3d44; font-size: 18px; }
.ethos-market-steps button.is-current { color: #1d2634; font-weight: 700; }
.ethos-market-steps button.is-current span { background: #a27a37; color: #fff; }
.ethos-market-editor fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ethos-market-editor .ethos-form-section { margin: 0; padding: 14px 0 22px; border: 0; }
.ethos-market-editor .ethos-form-section + .ethos-form-section { border-top: 1px solid #dfd2bd; }
.ethos-market-editor .ethos-form-section > h3, .ethos-market-review-step > h3 { margin: 0 0 12px; font: 400 clamp(25px, 2vw, 31px)/1.15 var(--ethos-serif); letter-spacing: -.02em; text-transform: none; }
.ethos-market-editor .ethos-form-grid { gap: 15px 24px; }
.ethos-market-editor .ethos-field label { margin-bottom: 5px; color: #2a3038; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.ethos-market-editor .ethos-field input:not([type="checkbox"]), .ethos-market-editor .ethos-field select, .ethos-market-editor .ethos-field textarea { min-height: 46px; height: auto; padding: 9px 13px; background: #fff; border: 1px solid #bfc5cb; color: #272b32; font: 16px/1.3 var(--ethos-sans); }
.ethos-market-editor .ethos-field input::placeholder { color: #818792; font-size: 15px; }
.ethos-market-editor .ethos-field-hint { color: #505760; font-size: 15px; line-height: 1.5; }
.ethos-market-editor input[type="number"] { appearance: auto; }
.ethos-market-signers { display: grid; gap: 0; margin-top: 12px; border: 1px solid #d8dde2; }
.ethos-market-signer { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(190px, 1.2fr) minmax(170px, 1fr); align-items: center; gap: 8px 15px; padding: 12px 14px; border-bottom: 1px solid #d8dde2; }
.ethos-market-signer:last-child { border-bottom: 0; }
.ethos-market-signer > strong { font-size: 16px; }
.ethos-market-signer__status { color: #955b0b; font-size: 14px; line-height: 1.35; }
.ethos-market-checkbox { display: flex !important; align-items: center; gap: 11px; min-height: 44px; font-size: 15px !important; line-height: 1.4; font-weight: 400 !important; letter-spacing: normal !important; text-transform: none !important; margin: 12px 0 0; }
.ethos-market-checkbox input[type="checkbox"] { display: block; width: 21px !important; height: 21px !important; min-height: 21px !important; min-width: 21px; margin: 0 !important; appearance: auto !important; accent-color: var(--market-gold); flex: 0 0 auto; }
.ethos-market-signer .ethos-market-checkbox { grid-column: 1 / -1; margin-top: 0; }
.ethos-market-tier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 14px; margin: 0; padding: 16px 0; border-bottom: 1px solid #dce0e4; }
.ethos-market-tier h4 { grid-column: 1 / -1; margin: 0; font-size: 17px; }
.ethos-market-tier > button { min-height: 46px; }
.ethos-market-editor__actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #d8c8aa; }
.ethos-market-editor__actions p { margin: 0; color: #62666c; font-size: 14px; line-height: 1.45; }
.ethos-market-editor__actions button { flex-shrink: 0; min-height: 48px; }
.ethos-ops .ethos-market-editor__actions .ethos-button--dark { color: #fff; background: #9d7639; border-color: #9d7639; }
.ethos-ops .ethos-market-editor__actions .ethos-button--dark:hover { color: #fff; background: #775724; border-color: #775724; }
.ethos-ops .ethos-market-editor__actions #ethos-market-save:disabled { color: #525861; background: #e1e3e6; border-color: #e1e3e6; opacity: 1; cursor: not-allowed; }
.ethos-market-save-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.ethos-market-pricing-timeline { margin: 15px 0; padding: 12px 16px; border-left: 4px solid var(--market-gold); background: #f9f6f0; color: #46423c; font-size: 15px; line-height: 1.55; }
.ethos-market-pricing-timeline:empty { display: none; }
.ethos-market-pricing-timeline strong { display: block; text-transform: uppercase; letter-spacing: .08em; }
.ethos-market-pricing-timeline p { margin: 5px 0 0; }
.ethos-market-pricing-timeline__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.ethos-market-review-step { min-width: 0; }
.ethos-market-review-summary, .ethos-market-pricing-comparison { width: 100%; font-size: 15px; line-height: 1.5; }
.ethos-market-review-summary__error { margin: 0; padding: 14px; color: #8b321d; border-left: 4px solid #ac4939; background: #fff8f6; }
.ethos-market-review-summary table, .ethos-market-pricing-comparison table { width: 100%; border-collapse: collapse; text-align: left; }
.ethos-market-review-summary th, .ethos-market-review-summary td, .ethos-market-pricing-comparison th, .ethos-market-pricing-comparison td { padding: 10px 12px; border: 1px solid #d9dee3; vertical-align: top; }
.ethos-market-review-summary thead th, .ethos-market-pricing-comparison thead th { color: #4b5562; font-weight: 600; }
.ethos-market-pricing-review { margin-top: 18px !important; padding: 18px !important; border: 1px solid #dcc49d !important; }
.ethos-market-pricing-review textarea { display: block; width: 100%; min-height: 94px; resize: vertical; }
.ethos-market-pricing-review h4 { margin: 18px 0 8px; font-size: 17px; }
.ethos-market-sample-inputs { margin-top: 16px; }
.ethos-market-sample-inputs summary, .ethos-market-pricing-full summary { min-height: 44px; display: flex; align-items: center; color: #90621c; font-size: 15px; font-weight: 600; cursor: pointer; }
.ethos-market-pricing-comparison { margin-top: 15px; }
.ethos-market-pricing-comparison table + table { margin-top: 20px; }
.ethos-market-pricing-comparison caption { padding: 12px 0 8px; text-align: left; font-weight: 700; color: #25221f; }
.ethos-market-payout { padding: 16px; border: 1px solid #d9dee3; }
.ethos-market-payout h4 { margin: 0 0 3px; font: 400 25px/1.1 var(--ethos-serif); }
.ethos-market-payout p { margin: 0 0 11px; color: #5d646d; font-size: 14px; }
.ethos-market-payout dl { margin: 0; }
.ethos-market-payout dl > div { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(180px, 2fr); gap: 15px; padding: 10px 0; border-top: 1px solid #d9dee3; }
.ethos-market-payout dt { font-weight: 600; }
.ethos-market-payout dd { margin: 0; }
.ethos-market-guardrail { margin: 16px 0 0; padding: 13px 16px; border-left: 4px solid #a7741b; background: #fbf8f1; color: #77511a; font-size: 15px; line-height: 1.45; }
#ethos-market-save-error:not(:empty) { display: block; margin: 14px 0; padding: 12px 14px; border-left: 4px solid #b04435; background: #fff8f6; font-size: 15px; }
@media (max-width: 1040px) { .ethos-markets { min-height: 0; padding: 30px clamp(24px, 7vw, 64px) 48px; } .ethos-market-signer { grid-template-columns: minmax(120px, 1fr) minmax(190px, 1.5fr); } .ethos-market-signer__status { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .ethos-markets__cards { grid-template-columns: 1fr; }
  .ethos-markets__heading, .ethos-market-editor__actions, .ethos-market-save-actions { flex-direction: column; align-items: stretch; }
  .ethos-market-card { padding: 22px; }
  .ethos-market-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ethos-market-signer { grid-template-columns: 1fr; }
  .ethos-market-signer__status { grid-column: auto; }
  .ethos-market-tier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ethos-market-tier > button { justify-self: start; }
  .ethos-market-editor__actions button, .ethos-market-save-actions { width: 100%; }
}
@media (max-width: 600px) {
  .ethos-markets { padding: 24px 19px 45px; }
  .ethos-markets .ethos-page-heading h1 { font-size: 54px; }
  .ethos-market-card h2 { font-size: 46px; }
  .ethos-market-status { align-items: flex-start; }
  .ethos-market-status dt { gap: 10px; }
  .ethos-market-status dd { max-width: 42%; white-space: normal; }
  .ethos-market-editor .ethos-form-grid, .ethos-market-tier { grid-template-columns: 1fr; }
  .ethos-market-steps button { font-size: 13px; }
  .ethos-market-steps button span { width: 34px; height: 34px; flex-basis: 34px; }
  .ethos-market-review-summary table, .ethos-market-pricing-comparison table, .ethos-market-review-summary tbody, .ethos-market-pricing-comparison tbody, .ethos-market-review-summary tr, .ethos-market-pricing-comparison tr { display: block; width: 100%; }
  .ethos-market-review-summary thead, .ethos-market-pricing-comparison thead { display: none; }
  .ethos-market-review-summary tr, .ethos-market-pricing-comparison tr { padding: 11px 0; border-top: 1px solid #d9dee3; }
  .ethos-market-review-summary th, .ethos-market-review-summary td, .ethos-market-pricing-comparison th, .ethos-market-pricing-comparison td { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 5px 0; border: 0; text-align: right; }
  .ethos-market-review-summary th, .ethos-market-pricing-comparison th { justify-content: flex-start; text-align: left; }
  .ethos-market-review-summary td::before, .ethos-market-pricing-comparison td::before { content: attr(data-label); color: #5a616b; text-align: left; }
  .ethos-market-payout dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Recruiting sits inside each active market; the existing portal shell stays unchanged. */
.ethos-recruit { min-width: 0; background: #fff; color: #1a1a1a; scroll-margin-top: 22px; }
.ethos-recruit__eyebrow { display: block; color: #87652c; font-size: 13px; font-weight: 700; letter-spacing: .19em; }
.ethos-recruit__heading { margin: 5px 0 0; }
.ethos-recruit__layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); align-items: start; gap: 24px; }
.ethos-recruit__layout[hidden] { display: none; }
.ethos-recruit__list, .ethos-recruit__detail { min-width: 0; padding: 22px; border: 1px solid #d9c49f; background: #fff; }
.ethos-recruit__section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 15px; }
.ethos-recruit__section-title h2, .ethos-recruit__detail h2 { margin: 0; font: 400 clamp(28px, 2.6vw, 37px)/1.1 var(--ethos-serif); letter-spacing: -.03em; }
.ethos-recruit__section-title h3, .ethos-recruit__detail h3 { margin: 0; font: 400 27px/1.15 var(--ethos-serif); }
.ethos-recruit__section-title p, .ethos-recruit__detail > p { margin: 6px 0 0; color: #57606a; font-size: 15px; line-height: 1.45; }
.ethos-recruit__section-title > span { color: #6b6254; font-size: 13px; }
.ethos-recruit__filters { display: grid; gap: 12px; margin-bottom: 14px; }
.ethos-recruit__filters label, .ethos-recruit__fields label, .ethos-recruit__upload label, .ethos-recruit__notes label { display: grid; gap: 6px; min-width: 0; color: #27303b; font-size: 13px; font-weight: 700; letter-spacing: .07em; line-height: 1.3; }
.ethos-recruit__filters input, .ethos-recruit__filters select, .ethos-recruit__fields input:not([type="checkbox"]), .ethos-recruit__fields select, .ethos-recruit__fields textarea, .ethos-recruit__notes textarea, .ethos-recruit__upload input[type="file"], .ethos-recruit__import input[type="file"] { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bfc5cb; border-radius: 0; background: #fff; color: #20252b; font: 16px/1.4 var(--ethos-sans); letter-spacing: 0; }
.ethos-recruit__fields textarea, .ethos-recruit__notes textarea { min-height: 94px; resize: vertical; }
.ethos-recruit__fields input::placeholder, .ethos-recruit__notes textarea::placeholder { color: #777f87; }
.ethos-recruit__fields label > span { color: #a33125; }
.ethos-recruit__list-status { margin: 11px 0; color: #606773; font-size: 14px; }
.ethos-ops .ethos-recruit__new { width: 100%; min-height: 48px; color: #171717; }
.ethos-recruit__target { display: grid; gap: 5px; width: 100%; min-height: 79px; margin-bottom: 8px; padding: 13px 14px; border: 1px solid #ddd6ca; border-left: 4px solid #b8afa0; background: #fff; color: #24272d; text-align: left; cursor: pointer; }
.ethos-recruit__target:hover, .ethos-recruit__target.is-active { border-color: #a17a3a; background: #fcf8f1; }
.ethos-recruit__target--top { border-left-color: #a17a3a; }
.ethos-recruit__target-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px; }
.ethos-recruit__target strong { min-width: 0; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.ethos-recruit__target em { flex: 0 0 auto; color: #765015; font-size: 10px; font-weight: 700; font-style: normal; letter-spacing: .08em; }
.ethos-recruit__target > span:not(.ethos-recruit__target-main), .ethos-recruit__target small { color: #5b636d; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.ethos-recruit__target small { font-weight: 700; }
.ethos-recruit__empty-list { padding: 18px 8px; }
.ethos-recruit__empty-list h3 { font-size: 22px; }
.ethos-recruit__badge { padding: 7px 9px; border: 1px solid #d2b884; background: #fbf6ea; color: #795520; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ethos-recruit__detail-back { display: none; margin-bottom: 12px; }
#ethos-recruit-empty { padding: 28px 2px; }
#ethos-recruit-empty p { margin: 9px 0 0; color: #5b636d; font-size: 16px; }
.ethos-recruit__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.ethos-recruit__fields .ethos-recruit__wide { grid-column: 1 / -1; }
.ethos-recruit__fields .ethos-recruit__check { display: flex; align-items: center; gap: 9px; min-height: 46px; font-size: 15px; letter-spacing: 0; font-weight: 500; }
.ethos-recruit__check input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: #9d7639; }
.ethos-recruit__import, .ethos-recruit__attachments, .ethos-recruit__notes, .ethos-recruit__activity { margin-top: 25px; padding-top: 21px; border-top: 1px solid #d9c49f; }
.ethos-recruit__import h3, .ethos-recruit__attachments h3, .ethos-recruit__notes h3, .ethos-recruit__activity h3 { margin: 0; }
.ethos-recruit__import > p, .ethos-recruit__notes > p { margin: 6px 0 14px; color: #57606a; font-size: 15px; line-height: 1.5; }
.ethos-recruit__import-actions { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 10px 17px; }
.ethos-ops .ethos-recruit__import-actions .ethos-button { min-height: 47px; }
.ethos-recruit__pdf-label { grid-column: 2; grid-row: 1; align-self: end; font-size: 13px; font-weight: 700; letter-spacing: .07em; }
.ethos-recruit__import input[type="file"] { grid-column: 2; padding: 7px; min-height: 47px; }
.ethos-recruit__import .ethos-field-hint { margin: 8px 0 0; color: #57606a; font-size: 14px; }
.ethos-recruit__import-review { margin-top: 15px; padding: 16px; border-left: 4px solid #ae812e; background: #fcf7eb; color: #292b2e; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ethos-recruit__import-review strong { font-size: 13px; letter-spacing: .08em; }
.ethos-recruit__import-review p { margin: 5px 0 8px; }
.ethos-recruit__import-review ul { padding-left: 20px; margin: 7px 0 0; }
.ethos-recruit__import-review li { padding: 5px 0; }
.ethos-recruit__import-review li small { display: block; color: #505966; font-size: 13px; }
.ethos-recruit__import-extra { margin-top: 14px; padding-top: 10px; border-top: 1px solid #dac79f; }
.ethos-recruit__import-extra > p { color: #5a5e65; }
.ethos-recruit__import-warnings { margin-top: 14px; padding-top: 10px; border-top: 1px solid #dac79f; }
.ethos-recruit__import-warnings b { color: #87511f; }
.ethos-recruit__form-actions { display: flex; align-items: center; gap: 15px; margin-top: 12px; }
.ethos-ops .ethos-recruit__form-actions .ethos-button--dark, .ethos-ops .ethos-recruit__notes .ethos-button--dark { color: #fff; background: #171717; border-color: #171717; }
.ethos-ops .ethos-recruit__form-actions .ethos-button--dark:hover, .ethos-ops .ethos-recruit__notes .ethos-button--dark:hover { color: #fff; background: #38332b; }
.ethos-recruit__form-actions > span { color: #59616d; font-size: 14px; }
.ethos-recruit__public-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; color: #765015; font-size: 13px; font-weight: 700; letter-spacing: .07em; }
.ethos-recruit__history-warning { margin: 18px 0 0; padding: 12px 14px; border-left: 4px solid #ad7d28; background: #fcf7eb; color: #5b421b; font-size: 14px; line-height: 1.5; }
.ethos-recruit .ethos-field-error:not(:empty) { margin: 12px 0; padding: 10px 12px; background: #fff6f3; color: #8b3325; border-left: 3px solid #aa4c39; font-size: 14px; }
.ethos-market-notice.is-error { border-left-color: #ac4939; background: #fff8f6; color: #7c3024; }
.ethos-recruit__file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e3ddd2; }
.ethos-recruit__file strong, .ethos-recruit__file small { display: block; overflow-wrap: anywhere; }
.ethos-recruit__file strong { font-size: 15px; }
.ethos-recruit__file small { margin-top: 3px; color: #69707a; font-size: 12px; }
.ethos-recruit__upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 12px; margin-top: 14px; }
.ethos-recruit__upload label { grid-column: 1 / -1; }
.ethos-recruit__upload .ethos-button { min-height: 46px; }
.ethos-recruit__notes form { display: grid; gap: 9px; }
.ethos-recruit__notes textarea { min-height: 84px; }
.ethos-recruit__notes form .ethos-button { justify-self: start; min-height: 46px; }
.ethos-recruit__entry { padding: 12px 0; border-top: 1px solid #e3ddd2; }
.ethos-recruit__entry p { margin: 0 0 5px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.ethos-recruit__entry strong, .ethos-recruit__entry small { display: block; }
.ethos-recruit__entry strong { font-size: 15px; }
.ethos-recruit__entry small, .ethos-recruit__muted { margin: 5px 0 0; color: #656d77; font-size: 13px; line-height: 1.4; }
.ethos-recruit__load-older { min-height: 44px; margin-top: 10px; color: #765015; font-weight: 700; }
@media (max-width: 980px) { .ethos-recruit__layout { grid-template-columns: 1fr; } .ethos-recruit__detail-back { display: inline-flex; } .ethos-recruit:not(.is-detail-open) .ethos-recruit__detail, .ethos-recruit.is-detail-open .ethos-recruit__list { display: none; } }
@media (max-width: 600px) { .ethos-recruit__list, .ethos-recruit__detail { padding: 17px; } .ethos-recruit__fields, .ethos-recruit__import-actions, .ethos-recruit__upload { grid-template-columns: 1fr; } .ethos-recruit__fields .ethos-recruit__wide, .ethos-recruit__pdf-label, .ethos-recruit__import input[type="file"], .ethos-recruit__upload label { grid-column: auto; grid-row: auto; } .ethos-recruit__form-actions { flex-direction: column; align-items: stretch; } .ethos-recruit__form-actions .ethos-button, .ethos-recruit__notes form .ethos-button { width: 100%; } .ethos-recruit__file { align-items: flex-start; flex-direction: column; } .ethos-recruit__target-main { flex-wrap: wrap; } }

/* A clear recruiting pipeline first, with a little paper-board character. */
.ethos-recruit__board-toolbar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 21px 0 15px; padding: 3px; border: 1px solid #bfa979; background: #fff; }
.ethos-recruit__board-toggle { min-width: 115px; min-height: 44px; padding: 9px 15px; border: 0; background: transparent; color: #29241c; font: 700 13px/1.2 var(--ethos-sans); letter-spacing: .08em; cursor: pointer; }
.ethos-recruit__board-toggle[aria-pressed="true"] { background: #171717; color: #fff; }
.ethos-recruit__board-toggle:focus-visible, .ethos-recruit__note :focus-visible { outline: 3px solid #9b6a16; outline-offset: 2px; }
.ethos-recruit__board-announcement { margin: 0 0 12px; color: #5a451e; font-size: 14px; line-height: 1.4; }
.ethos-recruit__board-announcement:empty { display: none; }
.ethos-recruit__board[hidden], .ethos-recruit__board-toolbar[hidden] { display: none !important; }
.ethos-recruit__board { display: block; min-width: 0; margin: 0 0 22px; }
.ethos-recruit__board-intro { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 17px; padding: 0 0 14px; border-bottom: 1px solid #ddcfb5; }
.ethos-recruit__board-intro h2 { margin: 0; font: 400 clamp(28px, 3vw, 39px)/1.1 var(--ethos-serif); }
.ethos-recruit__board-intro p { max-width: 660px; margin: 6px 0 0; color: #59616b; font-size: 15px; line-height: 1.45; }
.ethos-recruit__board-intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.ethos-recruit__board-intro .ethos-button { min-height: 47px; }
.ethos-recruit__board-search { display: grid; gap: 6px; width: min(100%, 420px); color: #27303b; font-size: 13px; font-weight: 700; letter-spacing: .07em; }
.ethos-recruit__board-search input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bfc5cb; background: #fff; color: #20252b; font: 16px/1.4 var(--ethos-sans); letter-spacing: 0; }
.ethos-recruit__board-count { margin: 11px 0 0; color: #5b626b; font-size: 14px; }
.ethos-recruit__board-hint { margin: 5px 0 15px; color: #66645f; font-size: 13px; line-height: 1.4; }
.ethos-recruit__board-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 13px; padding: 3px 1px 17px; }
.ethos-recruit__board-archive { margin-top: 20px; padding-top: 17px; border-top: 1px solid #d5c8b3; }
.ethos-recruit__board-archive > h3 { margin: 0 0 12px; font: 400 27px/1.2 var(--ethos-serif); }
.ethos-recruit__board-lanes--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ethos-recruit__lane { min-width: 250px; padding: 12px 11px 15px; border: 1px solid #d7cdbb; border-top: 3px solid #a68448; background: #f4f2ee; }
.ethos-recruit__lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 11px; padding: 0 3px 10px; border-bottom: 1px solid #d8d0c4; }
.ethos-recruit__lane-head h2, .ethos-recruit__lane-head h3 { margin: 0; color: #201d19; font: 400 24px/1.15 var(--ethos-serif); letter-spacing: -.015em; }
.ethos-recruit__lane-head span { display: inline-grid; min-width: 28px; min-height: 28px; place-items: center; padding: 2px 7px; border-radius: 99px; background: #e1d6bf; color: #45341e; font-size: 12px; font-weight: 700; }
.ethos-recruit__lane-list { display: grid; align-content: start; gap: 11px; min-height: 135px; }
.ethos-recruit__lane-list.is-drag-over { outline: 2px dashed #8c6a33; outline-offset: -3px; background: #f8f2e4; }
.ethos-recruit__note { position: relative; display: grid; gap: 9px; min-width: 0; padding: 15px 14px 13px; border: 1px solid rgba(39, 35, 29, .22); border-left: 4px solid #a1854a; background: #f9f1d9; color: #242322; box-shadow: 0 3px 8px rgba(29, 25, 18, .09); overflow-wrap: anywhere; transition: transform .18s ease, box-shadow .18s ease; }
.ethos-recruit__note:hover { transform: translateY(-2px); box-shadow: 0 7px 14px rgba(29, 25, 18, .15); }
.ethos-recruit__note.is-dragging, .ethos-recruit__note[aria-grabbed="true"] { opacity: .62; transform: rotate(-2deg) scale(.98); }
.ethos-recruit__note.is-just-moved { animation: ethos-recruit-note-land .24s ease-out both; }
.ethos-recruit__note--gold { background: #f9f1d9; border-left-color: #a1854a; }
.ethos-recruit__note--yellow { background: #fff6ca; border-left-color: #a58627; }
.ethos-recruit__note--sage { background: #e7eee2; border-left-color: #648161; }
.ethos-recruit__note--blue { background: #e7eef1; border-left-color: #55778b; }
.ethos-recruit__note--rose { background: #f3e7e4; border-left-color: #a36d72; }
.ethos-recruit__note--ivory { background: #fbfaf4; border-left-color: #a8997e; }
.ethos-recruit__note--rounded { border-radius: 11px; }
.ethos-recruit__note--ticket { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.ethos-recruit__note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.ethos-recruit__note-head strong { font: 400 22px/1.1 var(--ethos-serif); }
.ethos-recruit__note-head em { flex: 0 0 auto; color: #6f4a11; font-size: 10px; font-weight: 700; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.ethos-recruit__note-head[draggable="true"] { cursor: grab; }
.ethos-recruit__note-head[draggable="true"]:active { cursor: grabbing; }
.ethos-recruit__note-drag { display: inline-block; flex: 0 0 auto; padding: 4px 6px; border: 1px solid rgba(39, 35, 29, .25); color: #5b503c; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.ethos-recruit__note-meta { color: #4b5154; font-size: 13px; line-height: 1.38; }
.ethos-recruit__note-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.ethos-recruit__note-flags em { padding: 3px 6px; border: 1px solid rgba(103, 70, 24, .29); color: #6e4c1a; font-size: 10px; font-weight: 700; font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.ethos-recruit__note p { margin: 0; color: #33363a; font-size: 14px; line-height: 1.42; }
.ethos-recruit__note small { color: #46505a; font-size: 12px; line-height: 1.35; }
.ethos-recruit__note p > span { display: block; margin-bottom: 2px; color: #655338; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.ethos-recruit__note-reason, .ethos-recruit__note-proposal { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ethos-recruit__note-next { padding: 9px 10px; border-left: 2px solid #9b7639; background: rgba(255, 255, 255, .38); }
.ethos-recruit__note-actions { display: grid; gap: 8px; padding-top: 9px; border-top: 1px solid rgba(32, 28, 22, .17); }
.ethos-recruit__note-actions button, .ethos-recruit__note-actions select { min-height: 44px; padding: 9px 10px; border: 1px solid #7b705f; border-radius: 0; background: #fffdf9; color: #25231f; font: 700 13px/1.2 var(--ethos-sans); cursor: pointer; }
.ethos-recruit__note-actions button:hover { background: #1c1b19; color: #fff; }
.ethos-recruit__note-move { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; color: #3e4145; font-size: 12px; font-weight: 700; }
.ethos-recruit__note-move label { grid-column: 1 / -1; }
.ethos-recruit__note-move select { width: 100%; }
.ethos-recruit__lane-empty { margin: 5px 3px; color: #666a70; font-size: 13px; line-height: 1.4; }
@keyframes ethos-recruit-note-land { from { opacity: 0; transform: translateY(-15px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@media (max-width: 980px) { .ethos-recruit__board-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ethos-recruit__lane { min-width: 0; } .ethos-recruit__lane-list { min-height: 0; } }
@media (max-width: 600px) { .ethos-recruit__board-toolbar { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .ethos-recruit__board-toggle { min-width: 0; padding-inline: 7px; } .ethos-recruit__board-intro { align-items: stretch; flex-direction: column; } .ethos-recruit__board-intro-actions { align-items: stretch; flex-direction: column; } .ethos-recruit__board-intro .ethos-button { width: 100%; } .ethos-recruit__board-search { width: 100%; } .ethos-recruit__board-lanes { grid-template-columns: 1fr; } .ethos-recruit__note { padding: 15px; } }
@media (prefers-reduced-motion: reduce) { .ethos-recruit__note, .ethos-recruit__note:hover, .ethos-recruit__note.is-dragging { animation: none !important; transition: none !important; transform: none !important; } }

/* Agent onboarding queue and checklist — intentionally namespaced so the
   transaction ledger and Alabama agreement layouts remain isolated. */
.ethos-onboarding,
.ethos-onboarding-detail {
  min-height: calc(100vh - 233px);
  min-height: calc(100dvh - 233px);
  padding: 38px clamp(28px, 4vw, 64px) 56px;
  background: linear-gradient(110deg, #fff, #f5f1e9);
}

.ethos-onboarding__heading,
.ethos-onboarding-detail__heading {
  align-items: flex-end;
}

#ethos-onboarding-agreement-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 20px 0 8px;
}

#ethos-onboarding-agreement-action[hidden] { display: none; }
#ethos-onboarding-agreement-action p { margin: 0; color: #625c52; font-size: 12px; }

#ethos-agreement-onboarding-source:not([hidden]) {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 3px solid #a48a55;
  background: #f2ece0;
  color: #352f24;
  font-size: 13px;
  line-height: 1.5;
}

.ethos-onboarding__summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 24px;
  background: #ece7dd;
  border-block: 1px solid #ded5c4;
}

.ethos-onboarding__summary article {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  min-width: 0;
  padding: 20px 12px;
  text-align: center;
}

.ethos-onboarding__summary article + article::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 1px;
  content: "";
  background: var(--ethos-gold-line);
}

.ethos-onboarding__summary span,
.ethos-onboarding-profile > div > span,
.ethos-onboarding-intake h3,
.ethos-onboarding-activity__head {
  color: #373530;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ethos-onboarding__summary strong {
  color: #161616;
  font-family: var(--ethos-serif);
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.ethos-onboarding__filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) repeat(3, minmax(150px, 0.72fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 28px 0 20px;
}

.ethos-onboarding-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-onboarding-categories button {
  min-height: 46px;
  padding: 12px 20px;
  color: #5a554c;
  background: #ece7dd;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ethos-onboarding-categories button[aria-pressed="true"] {
  color: #fff;
  background: #191817;
  border-bottom-color: var(--ethos-gold);
}

.ethos-onboarding-categories button:focus-visible {
  outline: 2px solid var(--ethos-gold-deep);
  outline-offset: 3px;
}

.ethos-onboarding-completion {
  margin-top: 24px;
  padding: clamp(18px, 2.4vw, 26px);
  background: #f4f0e8;
  border: 1px solid #d3c8b4;
}

.ethos-onboarding-completion h2 {
  margin: 0 0 12px;
  font-family: var(--ethos-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
}

.ethos-onboarding-completion p,
.ethos-onboarding-completion ul {
  margin: 0 0 14px;
  color: #625a4b;
  font-size: 12px;
  line-height: 1.6;
}

.ethos-onboarding-completion ul {
  padding-left: 18px;
}

.ethos-onboarding-completion .ethos-button {
  min-height: 46px;
}

.ethos-ops .ethos-onboarding-completion .ethos-button--dark {
  color: #fff;
}

.ethos-onboarding-completion .ethos-field-error {
  margin: 12px 0 0;
  color: #a73325;
}

@media (max-width: 480px) {
  .ethos-onboarding-categories button {
    flex: 1 1 145px;
    padding-inline: 12px;
  }
  .ethos-onboarding-completion .ethos-button {
    width: 100%;
  }
}

.ethos-onboarding__filters .ethos-field label {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ethos-onboarding__filters input,
.ethos-onboarding__filters select {
  min-height: 48px;
  background-color: rgb(255 255 255 / 70%);
}

.ethos-onboarding__search input:focus {
  border-color: var(--ethos-gold-deep);
  box-shadow: 0 0 0 1px var(--ethos-gold-deep);
}

.ethos-onboarding__filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
}

.ethos-onboarding__filter-actions .ethos-button {
  min-height: 48px;
  padding-inline: 18px;
}

.ethos-ops .ethos-onboarding__filter-actions .ethos-button--dark {
  color: #fff;
}

.ethos-onboarding__table-wrap {
  position: relative;
  min-height: 210px;
  overflow-x: auto;
  background: rgb(255 255 255 / 48%);
  border: 1px solid #d2cec5;
}

.ethos-onboarding__table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ethos-onboarding__table th {
  padding: 15px 18px;
  color: #292823;
  background: #ebe7df;
  border-bottom: 1px solid #d8d2c7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
}

.ethos-onboarding__table th:nth-child(1) { width: 21%; }
.ethos-onboarding__table th:nth-child(2) { width: 13%; }
.ethos-onboarding__table th:nth-child(3) { width: 19%; }
.ethos-onboarding__table th:nth-child(4) { width: 12%; }
.ethos-onboarding__table th:nth-child(5) { width: 12%; }
.ethos-onboarding__table th:nth-child(6) { width: 14%; }
.ethos-onboarding__table th:nth-child(7) { width: 9%; }

.ethos-onboarding__table td {
  padding: 14px 18px;
  color: #47454f;
  background: rgb(255 255 255 / 22%);
  border-bottom: 1px solid #d4d0c8;
  font-size: 12px;
  line-height: 1.4;
  vertical-align: middle;
}

.ethos-onboarding__table tr:nth-child(even) td {
  background: rgb(239 235 227 / 54%);
}

.ethos-onboarding__table tr:last-child td {
  border-bottom: 0;
}

.ethos-onboarding__table td > strong,
.ethos-onboarding__table td > span,
.ethos-onboarding__table td > small {
  display: block;
  overflow-wrap: anywhere;
}

.ethos-onboarding__table td > strong {
  color: #28262b;
  font-weight: 500;
}

.ethos-onboarding__table td small {
  margin-top: 3px;
  color: #77736d;
  font-size: 10px;
}

.ethos-onboarding-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ethos-onboarding-agent > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ethos-onboarding-agent strong {
  color: #171717;
  font-family: var(--ethos-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ethos-onboarding-agent small {
  color: #77736d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ethos-onboarding-avatar {
  position: relative;
  display: inline-grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  color: #fff8ec;
  background: #282520;
  border: 1px solid #baa06c;
  border-radius: 50%;
  font-family: var(--ethos-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgb(0 0 0 / 34%);
}

.ethos-onboarding-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ethos-onboarding-avatar--large {
  flex-basis: 74px;
  width: 74px;
  height: 74px;
  font-size: 22px;
}

.ethos-onboarding-progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  background: #d6d4cf;
}

.ethos-onboarding-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ethos-gold-deep), var(--ethos-gold));
}

.ethos-onboarding-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3f3b34;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ethos-onboarding-status::before {
  width: 2px;
  height: 25px;
  content: "";
  background: #a7a39b;
}

.ethos-onboarding-status--in_progress::before,
.ethos-onboarding-status--waiting::before {
  background: var(--ethos-gold-deep);
}

.ethos-onboarding-status--ready_for_leads::before {
  background: #527251;
}

.ethos-onboarding-status--completed::before {
  background: #1d4428;
}

.ethos-onboarding-detail__back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 10px;
  color: var(--ethos-gold-deep);
}

.ethos-onboarding-detail__heading {
  margin-bottom: 16px;
}

.ethos-onboarding-identity {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #f4f0e8;
  border: 1px solid #d3c8b4;
}

.ethos-onboarding-identity > .ethos-field {
  flex: 1 1 260px;
  max-width: 380px;
  min-width: 0;
}

.ethos-onboarding-identity > .ethos-field-hint {
  flex: 1 1 220px;
  margin: 0 0 8px;
}

.ethos-onboarding-identity select {
  min-height: 44px;
  background-color: #fff;
}

.ethos-onboarding-profile {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  padding: 12px 18px;
  background: #ece7dd;
  border-block: 1px solid #ded5c4;
}

.ethos-onboarding-profile > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 24px;
  border-left: 1px solid var(--ethos-gold-line);
}

.ethos-onboarding-profile > .ethos-onboarding-avatar {
  margin-right: 18px;
}

.ethos-onboarding-profile strong {
  color: #34313a;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.ethos-onboarding-profile small {
  color: #77736d;
  font-size: 10px;
}

.ethos-onboarding-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(280px, 0.94fr);
  gap: 28px;
  margin-top: 18px;
}

.ethos-onboarding-detail[aria-busy="true"],
.ethos-onboarding-detail__layout[aria-busy="true"],
.ethos-onboarding-detail[inert],
.ethos-onboarding-detail [inert] {
  cursor: progress;
}

.ethos-onboarding-detail[aria-busy="true"] .ethos-onboarding-profile,
.ethos-onboarding-detail[aria-busy="true"] .ethos-onboarding-identity,
.ethos-onboarding-detail[aria-busy="true"] .ethos-onboarding-detail__layout,
.ethos-onboarding-detail__layout[aria-busy="true"],
.ethos-onboarding-detail[inert],
.ethos-onboarding-detail [inert] {
  pointer-events: none;
  user-select: none;
  opacity: 0.52;
  filter: saturate(0.62);
  transition: opacity 140ms ease, filter 140ms ease;
}

.ethos-onboarding-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.ethos-onboarding-section-heading h2 {
  color: #111;
  font-family: var(--ethos-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
}

.ethos-onboarding-section-heading p {
  color: #78736a;
  font-size: 10px;
}

.ethos-onboarding-checklist {
  min-width: 0;
}

.ethos-onboarding-readiness {
  margin: 12px 0 16px;
  padding: 14px 16px;
  color: #654f29;
  background: #f6f0e1;
  border: 1px solid #d3bd88;
  font-size: 12px;
  line-height: 1.6;
}

.ethos-onboarding-readiness ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.ethos-onboarding-step__check input:disabled + span {
  background: #e9e5dc;
  border-color: #b4ab98;
}

.ethos-onboarding-step {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.68fr) minmax(180px, 1fr) minmax(112px, 0.45fr);
  gap: 14px;
  align-items: end;
  padding: 10px 12px;
  border-top: 1px solid #d2cec6;
}

.ethos-onboarding-step:last-child {
  border-bottom: 1px solid #d2cec6;
}

.ethos-onboarding-step.is-complete {
  background: rgb(236 232 222 / 42%);
}

.ethos-onboarding-checklist__complete {
  padding: 22px 20px;
  color: #3f3a32;
  background: linear-gradient(135deg, rgb(187 154 91 / 13%), rgb(255 255 255 / 68%));
  border: 1px solid rgb(156 122 62 / 34%);
}

.ethos-onboarding-checklist__complete strong {
  font-family: var(--ethos-serif);
  font-size: 22px;
  font-weight: 400;
}

.ethos-onboarding-checklist__complete p {
  max-width: 620px;
  margin: 6px 0 0;
  color: #696258;
  font-size: 11px;
  line-height: 1.55;
}

.ethos-onboarding-step__check {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 45px;
  cursor: pointer;
}

.ethos-onboarding-step__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ethos-onboarding-step__check > span {
  position: relative;
  width: 21px;
  height: 21px;
  background: #fff;
  border: 1px solid #7c7973;
}

.ethos-onboarding-step__check input:focus-visible + span {
  outline: 2px solid var(--ethos-gold-deep);
  outline-offset: 3px;
}

.ethos-onboarding-step__check input:checked + span {
  background: var(--ethos-gold-deep);
  border-color: var(--ethos-gold-deep);
}

.ethos-onboarding-step__check input:checked + span::after {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  content: "";
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ethos-onboarding-step__check b {
  color: #44414a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.ethos-onboarding-step .ethos-field {
  gap: 4px;
}

.ethos-onboarding-step .ethos-field label {
  font-size: 8px;
  letter-spacing: 0.11em;
}

.ethos-onboarding-step .ethos-field input,
.ethos-onboarding-step .ethos-field select {
  min-height: 37px;
  padding: 8px 10px;
  background-color: rgb(255 255 255 / 76%);
  font-size: 11px;
}

.ethos-onboarding-step__completion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 37px;
}

.ethos-onboarding-step__completion > span {
  color: #59554e;
  font-size: 10px;
  line-height: 1.25;
}

.ethos-onboarding-step__completion small {
  display: block;
  color: #88837a;
  font-size: 8px;
}

.ethos-onboarding-step__completion .ethos-text-button {
  font-size: 8px;
}

.ethos-onboarding-step > .ethos-field-error {
  grid-column: 1 / -1;
  margin-top: -6px;
}

.ethos-onboarding-notes {
  margin-top: 30px;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(145deg, #f4f0e8, #ebe5da);
  border: 1px solid #d3c8b4;
  box-shadow: 0 18px 38px rgb(31 26 19 / 7%);
}

.ethos-onboarding-notes .ethos-onboarding-section-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-onboarding-notes .ethos-onboarding-section-heading > div {
  display: grid;
  gap: 4px;
}

.ethos-onboarding-notes__privacy {
  padding: 7px 10px;
  color: #5e4c29;
  background: rgb(187 154 91 / 12%);
  border: 1px solid rgb(156 122 62 / 35%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ethos-onboarding-notes__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  margin-top: 18px;
}

.ethos-onboarding-notes__composer select,
.ethos-onboarding-notes__composer textarea {
  background-color: rgb(255 255 255 / 82%);
}

.ethos-onboarding-notes__composer textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

.ethos-onboarding-notes__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7b756c;
  font-size: 9px;
}

.ethos-onboarding-notes__actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.ethos-onboarding-notes__actions .ethos-field-error {
  flex: 1;
  margin: 0;
}

.ethos-onboarding-notes__actions .ethos-button {
  min-width: 138px;
}

.ethos-ops .ethos-onboarding-notes__actions .ethos-button--dark {
  color: #fff;
}

.ethos-onboarding-notes__state {
  min-height: 17px;
  margin-top: 20px;
  color: #777168;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.ethos-onboarding-notes__timeline {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.ethos-onboarding-note {
  padding: 16px 18px;
  background: rgb(255 255 255 / 72%);
  border-left: 2px solid var(--ethos-gold-deep);
}

.ethos-onboarding-note header {
  display: flex;
  gap: 11px;
  align-items: center;
}

.ethos-onboarding-note__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  color: #f4efe5;
  background: #171717;
  border: 1px solid #a98b52;
  border-radius: 50%;
  font-family: var(--ethos-serif);
  font-size: 12px;
}

.ethos-onboarding-note header > div {
  display: grid;
  gap: 2px;
}

.ethos-onboarding-note strong {
  color: #292622;
  font-size: 11px;
  font-weight: 600;
}

.ethos-onboarding-note time {
  color: #807970;
  font-size: 9px;
}

.ethos-onboarding-note p {
  margin: 12px 0 0 45px;
  color: #4b4741;
  font-size: 12px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ethos-onboarding-notes__more {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
}

.ethos-onboarding-activity {
  margin-top: 28px;
}

.ethos-onboarding-activity__head,
.ethos-onboarding-activity__row {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(170px, 1fr) minmax(200px, 1.35fr) minmax(110px, 0.65fr) minmax(74px, 0.35fr);
  gap: 16px;
  padding: 10px 12px;
}

.ethos-onboarding-activity__head {
  background: #ebe7df;
}

.ethos-onboarding-activity__row {
  color: #4f4b55;
  border-bottom: 1px solid #d2cec6;
  font-size: 10px;
}

.ethos-onboarding-activity__row strong {
  font-weight: 500;
}

.ethos-onboarding-activity__row small {
  display: block;
  color: #817d75;
  font-size: 8px;
}

.ethos-onboarding-activity__action {
  display: grid;
  gap: 4px;
  justify-items: start;
  align-content: start;
}

.ethos-onboarding-activity__undo {
  min-height: 28px;
  color: #6d5428;
}

.ethos-onboarding-activity__action .ethos-field-error {
  margin: 0;
  line-height: 1.35;
}

.ethos-onboarding-activity__no-action {
  color: #aaa49a;
}

.ethos-onboarding-intake {
  align-self: start;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--ethos-gold-line);
}

.ethos-onboarding-intake .ethos-onboarding-section-heading {
  display: block;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-onboarding-intake .ethos-onboarding-section-heading p {
  margin-top: 4px;
}

.ethos-onboarding-intake h3 {
  margin-top: 14px;
  padding: 9px 10px;
  background: #ebe7df;
}

.ethos-onboarding-intake dl {
  display: grid;
  grid-template-columns: minmax(95px, 0.72fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #d2cec6;
}

.ethos-onboarding-intake dt,
.ethos-onboarding-intake dd {
  color: #4d4952;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.ethos-onboarding-intake dd {
  font-weight: 500;
}

.ethos-empty-state--compact {
  padding: 26px 18px;
}

@media (max-width: 1240px) {
  .ethos-onboarding__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ethos-onboarding__summary article:nth-child(4)::before {
    display: none;
  }

  .ethos-onboarding__summary article:nth-child(n + 4) {
    border-top: 1px solid #d8d2c7;
  }

  .ethos-onboarding__filters {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(135px, 0.7fr));
  }

  .ethos-onboarding__filter-actions {
    grid-column: 1 / -1;
  }

  .ethos-onboarding-step {
    grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.72fr) minmax(180px, 1fr);
  }

  .ethos-onboarding-step__completion {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 1160px) and (min-width: 1041px) {
  .ethos-onboarding-detail__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ethos-onboarding-intake {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--ethos-gold-line);
    border-left: 0;
  }
}

@media (max-width: 1040px) {
  .ethos-onboarding,
  .ethos-onboarding-detail {
    min-height: 0;
    padding: 30px clamp(24px, 7vw, 64px) 48px;
  }

  .ethos-onboarding-detail__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ethos-onboarding-intake {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--ethos-gold-line);
    border-left: 0;
  }
}

@media (max-width: 780px) {
  .ethos-onboarding__heading,
  .ethos-onboarding-detail__heading,
  .ethos-onboarding-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ethos-onboarding__filters {
    grid-template-columns: 1fr 1fr;
  }

  .ethos-onboarding__search,
  .ethos-onboarding__filter-actions {
    grid-column: 1 / -1;
  }

  .ethos-onboarding__table {
    min-width: 0;
  }

  .ethos-onboarding__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .ethos-onboarding__table,
  .ethos-onboarding__table tbody,
  .ethos-onboarding__table tr,
  .ethos-onboarding__table td {
    display: block;
    width: 100%;
  }

  .ethos-onboarding__table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .ethos-onboarding__table tbody {
    display: grid;
    gap: 12px;
  }

  .ethos-onboarding__table tr {
    padding: 10px 16px 14px;
    background: rgb(255 255 255 / 50%);
    border: 1px solid #cfcac0;
    border-left: 2px solid var(--ethos-gold-deep);
    box-shadow: 0 10px 24px rgb(34 29 22 / 6%);
  }

  .ethos-onboarding__table tr:nth-child(even) {
    background: rgb(239 235 227 / 54%);
  }

  .ethos-onboarding__table td,
  .ethos-onboarding__table tr:nth-child(even) td {
    display: grid;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    background: transparent;
    border: 0;
  }

  .ethos-onboarding__table td::before {
    color: #625b4e;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .ethos-onboarding__table tr > td:first-child {
    display: block;
    padding-bottom: 13px;
    border-bottom: 1px solid #ddd8ce;
  }

  .ethos-onboarding__table td:first-child::before {
    display: none;
  }

  .ethos-onboarding__table td:last-child .ethos-text-button {
    justify-self: start;
  }

  .ethos-onboarding__table td:last-child {
    margin-top: 4px;
    padding-top: 11px;
    border-top: 1px solid #ddd8ce;
  }

  .ethos-onboarding-profile {
    grid-template-columns: auto 1fr 1fr;
  }

  .ethos-onboarding-profile > div:nth-of-type(n + 3) {
    grid-column: span 1;
    margin-top: 10px;
    border-top: 1px solid #d8d2c7;
  }

  .ethos-onboarding-step {
    grid-template-columns: 1fr 1fr;
  }

  .ethos-onboarding-step__check,
  .ethos-onboarding-step__completion,
  .ethos-onboarding-step > .ethos-field-error {
    grid-column: 1 / -1;
  }

  .ethos-onboarding-step__completion {
    justify-self: stretch;
  }

  .ethos-onboarding-activity__head {
    display: none;
  }

  .ethos-onboarding-activity__row {
    grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr);
    gap: 8px 14px;
    padding: 14px;
    background: rgb(255 255 255 / 58%);
    border: 1px solid #d2cec6;
    border-left: 2px solid var(--ethos-gold-deep);
    box-shadow: 0 9px 22px rgb(34 29 22 / 5%);
  }

  #ethos-onboarding-activity {
    display: grid;
    gap: 10px;
  }

  .ethos-onboarding-activity__row > span:first-child {
    grid-column: 1;
    grid-row: 1;
    color: #665f53;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .ethos-onboarding-activity__row > strong {
    grid-column: 2;
    grid-row: 1;
    color: #211f1c;
    font-family: var(--ethos-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
  }

  .ethos-onboarding-activity__row > span:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    color: #4c4842;
    font-size: 11px;
    line-height: 1.5;
  }

  .ethos-onboarding-activity__row > span:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
    color: #766f65;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .ethos-onboarding-activity__action {
    grid-column: 1 / -1;
    grid-row: 4;
    padding-top: 2px;
  }

  .ethos-onboarding-notes__composer {
    grid-template-columns: 1fr;
  }

  .ethos-onboarding-notes__actions {
    grid-column: auto;
  }
}

@media (min-width: 681px) and (max-width: 780px) {
  .ethos-onboarding-profile {
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .ethos-onboarding-profile > .ethos-onboarding-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .ethos-onboarding-profile > div {
    min-height: 0;
    margin-top: 0;
    padding: 10px 14px;
  }

  .ethos-onboarding-profile > div:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .ethos-onboarding-profile > div:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .ethos-onboarding-profile > div:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .ethos-onboarding-profile > div:nth-of-type(4) {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  .ethos-onboarding,
  .ethos-onboarding-detail {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ethos-onboarding__summary {
    grid-template-columns: 1fr 1fr;
  }

  .ethos-onboarding__summary article:nth-child(3)::before,
  .ethos-onboarding__summary article:nth-child(5)::before {
    display: none;
  }

  .ethos-onboarding__summary article:nth-child(n + 3) {
    border-top: 1px solid #d8d2c7;
  }

  .ethos-onboarding__filters,
  .ethos-onboarding-step {
    grid-template-columns: 1fr;
  }

  .ethos-onboarding__search,
  .ethos-onboarding__filter-actions,
  .ethos-onboarding-step__check,
  .ethos-onboarding-step__completion,
  .ethos-onboarding-step > .ethos-field-error {
    grid-column: auto;
  }

  .ethos-onboarding__filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ethos-onboarding__filter-actions .ethos-button {
    width: 100%;
  }

  .ethos-onboarding__filter-actions .ethos-text-button {
    align-self: flex-start;
  }

  .ethos-onboarding-profile {
    grid-template-columns: auto 1fr;
    padding: 14px;
  }

  .ethos-onboarding-profile > .ethos-onboarding-avatar {
    grid-row: 1 / span 2;
  }

  .ethos-onboarding-profile > div {
    grid-column: 2;
    min-height: 0;
    padding: 8px 10px;
    border-top: 1px solid #d8d2c7;
    border-left: 0;
  }

  .ethos-onboarding-profile > div:first-of-type {
    border-top: 0;
  }

  .ethos-onboarding-step {
    gap: 10px;
    padding: 14px 10px;
  }

  .ethos-onboarding-step .ethos-field input,
  .ethos-onboarding-step .ethos-field select {
    min-height: 46px;
    font-size: 16px;
  }

  .ethos-onboarding-step__completion {
    grid-template-columns: 1fr auto;
  }

  .ethos-onboarding-intake dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ethos-onboarding-notes {
    padding: 17px 14px;
  }

  .ethos-onboarding-notes__privacy {
    align-self: flex-start;
  }

  .ethos-onboarding-notes__composer select,
  .ethos-onboarding-notes__composer textarea {
    font-size: 16px;
  }

  .ethos-onboarding-notes__meta,
  .ethos-onboarding-notes__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ethos-onboarding-notes__actions .ethos-button {
    width: 100%;
  }

  .ethos-onboarding-note {
    padding: 14px;
  }

  .ethos-onboarding-note p {
    margin-left: 0;
  }
}

@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  .ethos-onboarding__table td:last-child .ethos-text-button,
  .ethos-onboarding-detail__back,
  .ethos-onboarding__filter-actions .ethos-text-button,
  .ethos-onboarding .ethos-pagination .ethos-text-button,
  .ethos-onboarding-notes__more,
  .ethos-onboarding-activity__undo,
  .ethos-onboarding-step__completion .ethos-text-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 2px 9px;
    font-size: 10px;
    line-height: 1.35;
  }

  .ethos-onboarding .ethos-pagination .ethos-text-button {
    min-width: 82px;
  }
}

@media print {
  .ethos-onboarding__filters,
  .ethos-onboarding__filter-actions,
  .ethos-onboarding__table td:last-child,
  .ethos-onboarding-step__completion button,
  .ethos-onboarding-detail__back {
    display: none !important;
  }
}

/* R8 completed-transaction workflow */

body.ethos-ops-portal {
  overflow-x: hidden;
}

.ethos-skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 2000;
  padding: 11px 15px;
  color: var(--ethos-ink);
  background: #fff;
  border: 2px solid var(--ethos-gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-160%);
}

.ethos-skip-link:focus {
  transform: translateY(0);
}

/* Route changes move focus to the application landmark for screen-reader
   context. The landmark itself is not an interactive control, so suppress the
   browser's blue focus ring while retaining visible focus on every control. */
.ethos-workspace:focus {
  outline: none;
}

.ethos-ops textarea {
  width: 100%;
  min-height: 98px;
  padding: 12px 13px;
  resize: vertical;
  color: #303034;
  background-color: rgb(255 255 255 / 50%);
  border: 1px solid #b9b9b8;
  border-radius: 0;
  font-family: var(--ethos-sans);
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.ethos-ops textarea:focus-visible,
.ethos-text-button:focus-visible,
.ethos-inline-button:focus-visible,
.ethos-dialog__close:focus-visible,
.ethos-signature canvas:focus-visible {
  outline: 2px solid var(--ethos-gold-deep);
  outline-offset: 3px;
}

.ethos-ops textarea:focus {
  border-color: var(--ethos-gold-deep);
  box-shadow: 0 0 0 1px var(--ethos-gold-deep);
}

.ethos-ops textarea[aria-invalid="true"],
.ethos-certification.has-error,
.ethos-signature.has-error canvas {
  border-color: var(--ethos-error) !important;
}

.ethos-portal__hero {
  min-height: 176px;
}

.ethos-workspace {
  background: var(--ethos-paper);
}

.ethos-transaction,
.ethos-review,
.ethos-receipt {
  grid-template-columns: minmax(0, 2.18fr) minmax(340px, 0.92fr);
  align-items: stretch;
}

.ethos-review {
  display: grid;
  min-height: calc(100vh - 233px);
  min-height: calc(100dvh - 233px);
}

.ethos-transaction__form-panel,
.ethos-review__paper,
.ethos-receipt__paper {
  padding: 34px clamp(30px, 3.2vw, 54px) 48px;
  background: linear-gradient(110deg, #fff, #f7f4ee 92%);
}

.ethos-page-heading h1 {
  font-size: clamp(43px, 3.25vw, 58px);
}

.ethos-page-heading p {
  max-width: 760px;
  line-height: 1.55;
}

.ethos-form-section {
  padding: 25px 0 28px;
}

@media (min-width: 1041px) {
  .ethos-form-section:nth-of-type(1),
  .ethos-form-section:nth-of-type(2),
  .ethos-form-section:nth-of-type(3) {
    min-height: 0;
  }
}

.ethos-form-section legend {
  margin-bottom: 17px;
  font-size: 13px;
}

.ethos-form-stack {
  display: grid;
  gap: 19px;
}

.ethos-form-grid {
  gap: 16px 20px;
}

.ethos-form-grid--address {
  grid-template-columns: 1.7fr 0.65fr 1.15fr 0.7fr 0.72fr;
}

.ethos-field--street {
  min-width: 0;
}

.ethos-field,
.ethos-address,
.ethos-certification,
.ethos-signature {
  min-width: 0;
}

.ethos-field label,
.ethos-field__label {
  display: block;
  margin-bottom: 7px;
  color: #171719;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.ethos-field label small {
  color: #77746d;
  font-size: 8px;
  font-weight: 600;
}

.ethos-field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.ethos-field select {
  min-height: 52px;
  height: 52px;
  background-color: rgb(255 255 255 / 74%);
  font-size: 13px;
}

.ethos-field input:disabled,
.ethos-field select:disabled {
  color: #85827c;
  background-color: rgb(226 223 216 / 62%);
  cursor: not-allowed;
}

.ethos-field input[readonly] {
  color: #595852;
  background: #eeeae2;
}

.ethos-field-hint {
  margin-top: 6px !important;
  color: #716f69;
  font-size: 10px;
  line-height: 1.45;
}

.ethos-lock-note {
  color: #62502c;
  font-weight: 650;
}

.ethos-field.is-correction-locked .ethos-choice {
  color: #5d5a54 !important;
  background: #e8e3da;
  border-color: #c6bda9;
  cursor: not-allowed;
}

.ethos-field.is-correction-locked .ethos-choice.is-selected {
  color: #171719 !important;
  background: linear-gradient(108deg, #eadfca, #d9c28f);
  border-color: #b69b64;
}

.ethos-choice-group--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ethos-choice {
  min-height: 47px;
  height: auto;
  padding-block: 10px;
  line-height: 1.35;
}

.ethos-choice.is-selected {
  background: linear-gradient(108deg, #eadfca, #d9c28f);
  border-color: #c1a86f;
}

.ethos-address {
  padding: 18px;
  background: rgb(231 226 215 / 48%);
  border-left: 2px solid var(--ethos-gold-line);
}

.ethos-address__heading,
.ethos-signature__header,
.ethos-dialog__header,
.ethos-detail__heading,
.ethos-history__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.ethos-address__lookup {
  position: relative;
  margin-bottom: 15px;
}

.ethos-text-button {
  width: max-content;
  max-width: 100%;
  padding: 0 0 5px;
  color: #282723;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ethos-gold-deep);
  border-radius: 0;
  font-family: var(--ethos-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.ethos-text-button:hover {
  color: var(--ethos-gold-deep);
}

.ethos-text-button:disabled {
  color: #9c9992;
  border-color: #c8c5be;
  cursor: not-allowed;
}

.ethos-combobox,
.ethos-address__lookup {
  position: relative;
}

.ethos-combobox__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ethos-combobox__control input {
  border-right: 0 !important;
}

.ethos-inline-button {
  min-height: 44px;
  padding: 0 17px;
  color: #161512;
  background: #e3d2aa;
  border: 1px solid #b59a62;
  border-radius: 0;
  font-family: var(--ethos-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
  cursor: pointer;
}

.ethos-inline-button:disabled {
  color: #898681;
  background: #e2dfd8;
  border-color: #bbb9b3;
  cursor: not-allowed;
}

.ethos-combobox__list {
  position: absolute;
  top: calc(100% - 35px);
  right: 0;
  left: 0;
  z-index: 40;
  max-height: 270px;
  margin: 0;
  padding: 5px 0;
  overflow-y: auto;
  color: #191919;
  background: #fff;
  border: 1px solid #a99569;
  box-shadow: 0 16px 35px rgb(32 28 20 / 20%);
  list-style: none;
}

.ethos-address__suggestions {
  top: 70px;
}

.ethos-combobox__list li {
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.ethos-combobox__list li:hover,
.ethos-combobox__list li[aria-selected="true"] {
  color: #0d0d0d;
  background: #eadfc8;
}

.ethos-combobox__list .ethos-combobox__empty {
  color: #77746e;
  cursor: default;
}

.ethos-google-attribution {
  position: absolute;
  right: 8px;
  bottom: 4px;
  padding: 3px 5px;
  color: #5f6368;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0;
}

.ethos-agentzero-attribution {
  position: absolute;
  right: 9px;
  bottom: 4px;
  padding: 3px 6px;
  color: #5f5747;
  background: #fff;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ethos-agreement-address {
  margin-top: 20px;
  margin-bottom: 22px;
}

.ethos-upload {
  min-height: 68px;
  background: rgb(255 255 255 / 68%);
}

.ethos-file-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.ethos-file-row,
.ethos-file-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  color: #262522;
  background: rgb(255 255 255 / 54%);
  border: 1px solid #c8c4ba;
  text-decoration: none;
}

.ethos-file-row span,
.ethos-file-link span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ethos-file-row b,
.ethos-file-link strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ethos-file-row small,
.ethos-file-link small {
  margin-top: 2px;
  color: #77736c;
  font-size: 9px;
}

.ethos-file-row button,
.ethos-file-link > b {
  padding: 4px 0;
  color: #4e4532;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ethos-gold-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.ethos-calculated-note {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-column: 1 / -1;
  gap: 2px 20px;
  align-items: center;
  padding: 13px 15px;
  background: #eee5d2;
  border-left: 2px solid var(--ethos-gold-deep);
}

.ethos-calculated-note span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ethos-calculated-note strong {
  grid-row: span 2;
  font-family: var(--ethos-serif);
  font-size: 26px;
  font-weight: 400;
}

.ethos-calculated-note small {
  color: #6e6b64;
  font-size: 10px;
}

.ethos-gate-message,
.ethos-mode-notice,
.ethos-review__alert {
  margin-top: 10px;
  padding: 13px 15px;
  color: #4c2421;
  background: #f1ded9;
  border-left: 3px solid var(--ethos-error);
  font-size: 12px;
  line-height: 1.5;
}

.ethos-mode-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: #3e3524;
  background: #eee2c8;
  border-left-color: var(--ethos-gold-deep);
}

.ethos-completion-notice {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 17px;
  color: #403721;
  background: linear-gradient(105deg, #f1e7d2, #e8d8b6);
  border-top: 1px solid #c2a565;
  border-bottom: 1px solid #c2a565;
}

.ethos-completion-notice strong {
  font-size: 9px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.ethos-completion-notice p {
  color: #554d3b;
  font-size: 11px;
  line-height: 1.55;
}

.ethos-mode-notice strong,
.ethos-review__alert strong {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.ethos-certification {
  padding: 15px;
  background: rgb(255 255 255 / 45%);
  border: 1px solid #bbb8b0;
}

.ethos-certification > label {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  color: #292824;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.ethos-certification input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #a4864e;
}

.ethos-signature {
  padding: 16px;
  background: rgb(255 255 255 / 46%);
  border: 1px solid #bbb8b0;
}

.ethos-signature__header {
  align-items: flex-end;
  margin-bottom: 11px;
}

.ethos-signature__header p {
  color: #74716b;
  font-size: 10px;
}

.ethos-signature__alternative {
  padding: 13px;
  background: rgb(241 237 228 / 72%);
  border: 1px solid #c8c0b0;
}

.ethos-signature__alternative > label {
  display: block;
  margin-bottom: 7px;
  color: #24231f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.ethos-signature__alternative-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ethos-signature__alternative input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  color: #292824;
  background: #fff;
  border: 1px solid #aaa69e;
  border-right: 0;
  border-radius: 0;
  font-family: var(--ethos-sans);
  font-size: 14px;
  outline: none;
}

.ethos-signature__alternative input:focus {
  border-color: var(--ethos-gold-deep);
  box-shadow: inset 0 0 0 1px var(--ethos-gold-deep);
}

.ethos-signature__alternative input[aria-invalid="true"] {
  border-color: var(--ethos-error) !important;
}

.ethos-signature__divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 13px 0 9px;
  color: #77736b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ethos-signature__divider::before,
.ethos-signature__divider::after {
  flex: 1 1 auto;
  height: 1px;
  content: "";
  background: #cec6b5;
}

.ethos-signature canvas {
  display: block;
  width: 100%;
  height: 155px;
  background-color: #fff;
  background-image: linear-gradient(to bottom, transparent calc(100% - 34px), #d4c9b0 calc(100% - 33px), transparent calc(100% - 32px));
  border: 1px solid #aaa69e;
  cursor: crosshair;
  touch-action: none;
}

.ethos-commission {
  min-height: 100%;
  padding: 42px clamp(26px, 3vw, 44px) 48px;
}

.ethos-commission > div > .ethos-breakdown {
  margin-top: 32px;
}

.ethos-commission dl > div {
  gap: 16px;
  font-size: 13px;
}

.ethos-commission dl > .ethos-commission__agent {
  margin-top: 7px;
  padding-top: 17px;
  color: #fff;
  border-top: 1px solid rgb(255 255 255 / 24%);
  font-weight: 650;
}

.ethos-commission dl > .ethos-commission__share {
  font-size: 21px;
}

.ethos-commission dl > .ethos-commission__reconcile {
  padding-top: 17px;
  color: #d1cdc4;
  border-top: 1px solid rgb(255 255 255 / 18%);
  font-size: 11px;
  font-weight: 650;
}

.ethos-commission > p {
  line-height: 1.55;
}

.ethos-button--outline-dark {
  color: #171717;
  background: transparent;
  border: 1px solid #6f6655;
}

.ethos-button--outline-dark:hover {
  color: #fff;
  background: #171717;
}

.ethos-button--dark {
  color: #fff;
  background: #171717;
  border: 1px solid #171717;
}

.ethos-button--danger {
  color: #fff;
  background: #702a26;
  border: 1px solid #702a26;
}

.ethos-button--danger:hover {
  background: #55201d;
}

.ethos-button--compact {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 9px;
}

.ethos-review__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.ethos-review-section {
  padding: 18px;
  background: rgb(255 255 255 / 55%);
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-review-section:last-child {
  grid-column: 1 / -1;
}

.ethos-review-section h2,
.ethos-audit h2 {
  margin: 0 0 11px;
  font-family: var(--ethos-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ethos-review-section dl > div {
  display: grid;
  grid-template-columns: minmax(130px, 32%) 1fr;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #d0cdc6;
}

.ethos-review-section dt {
  color: #6c6962;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ethos-review-section dd {
  overflow-wrap: anywhere;
  color: #292826;
  font-size: 12px;
}

.ethos-review__alert {
  color: #4c3b1e;
  background: #f3e9d5;
  border-left-color: var(--ethos-gold-deep);
}

.ethos-review__alert p {
  margin: 5px 0 10px;
}

.ethos-review__alert label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  cursor: pointer;
}

.ethos-review__alert input {
  width: 17px;
  height: 17px;
  accent-color: #9a7c44;
}

.ethos-duplicate-reason {
  margin-top: 16px;
}

.ethos-duplicate-reason textarea {
  min-height: 86px;
  background: rgb(255 255 255 / 72%);
}

.ethos-review__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-review__actions .ethos-button {
  min-width: 210px;
}

.ethos-receipt-history {
  display: block;
  margin: 28px auto 0;
  color: #fff;
}

.ethos-history,
.ethos-detail {
  min-height: calc(100vh - 233px);
  min-height: calc(100dvh - 233px);
  padding: 38px clamp(28px, 4vw, 64px) 56px;
  background: linear-gradient(110deg, #fff, #f5f1e9);
}

.ethos-history__heading,
.ethos-detail__heading {
  align-items: flex-end;
}

.ethos-history__heading-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ethos-delivery-health {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 17px 19px;
  color: #eee8dd;
  background: #171717;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-delivery-health > div:first-child {
  display: grid;
  gap: 3px;
}

.ethos-delivery-health > div:first-child > span,
.ethos-delivery-card > div > span {
  color: #c5a96f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ethos-delivery-health > div:first-child strong {
  font-family: var(--ethos-serif);
  font-size: 21px;
  font-weight: 400;
}

.ethos-delivery-health small {
  color: #aaa49a;
  font-size: 9px;
}

.ethos-delivery-health > .ethos-text-button {
  color: #e5d1a5;
  border-color: #9c8350;
  white-space: nowrap;
}

.ethos-delivery-health__counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.ethos-delivery-count {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  padding: 6px 8px;
  color: #c9c3b8;
  background: #262522;
  border: 1px solid #3e3a33;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ethos-delivery-count b {
  color: #fff;
  font-size: 11px;
}

.ethos-delivery-count--failed {
  color: #f1bbb5;
  border-color: #84423d;
}

.ethos-delivery-health__failures {
  display: grid;
  grid-column: 1 / -1;
  gap: 1px;
  background: #3e3a33;
  border: 1px solid #3e3a33;
}

.ethos-delivery-health__failures[hidden] {
  display: none;
}

.ethos-delivery-health__failures article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  background: #201f1d;
}

.ethos-delivery-health__failures article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ethos-delivery-health__failures strong,
.ethos-delivery-health__failures span,
.ethos-delivery-health__failures small {
  overflow-wrap: anywhere;
}

.ethos-delivery-health__failures strong {
  color: #fff;
  font-size: 12px;
}

.ethos-delivery-health__failures span,
.ethos-delivery-health__failures small {
  color: #c9c3b8;
  font-size: 10px;
}

.ethos-history__summary,
.ethos-history__totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--ethos-gold-line);
  border: 1px solid var(--ethos-gold-line);
}

.ethos-history__summary article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background: #faf8f3;
}

.ethos-history__summary span {
  color: #716d65;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.ethos-history__summary strong {
  color: #171717;
  font-family: var(--ethos-serif);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.ethos-history__filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 24px 0 18px;
  padding: 18px;
  background: #ece6da;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-history__filter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ethos-history__filter-actions .ethos-button {
  flex: 0 0 auto;
  padding-inline: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.ethos-history__filters .ethos-button {
  min-height: 44px;
  padding: 10px 20px;
}

.ethos-history__filters > .ethos-text-button {
  align-self: center;
  margin-left: 4px;
}

.ethos-history__table-wrap {
  position: relative;
  min-height: 180px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #c9c5bc;
}

.ethos-history__table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ethos-history__table th {
  padding: 12px 14px;
  color: #ddd3be;
  background: #171717;
  border-bottom: 1px solid #332f28;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.ethos-history__table th:nth-child(1) { width: 17%; }
.ethos-history__table th:nth-child(2) { width: 23%; }
.ethos-history__table th:nth-child(3) { width: 17%; }
.ethos-history__table th:nth-child(4) { width: 11%; }
.ethos-history__table th:nth-child(5) { width: 11%; }
.ethos-history__table th:nth-child(6) { width: 13%; }
.ethos-history__table th:nth-child(7) { width: 8%; }

.ethos-history__table td {
  padding: 14px;
  color: #3b3935;
  border-bottom: 1px solid #d7d3ca;
  font-size: 12px;
  line-height: 1.4;
  vertical-align: middle;
}

.ethos-history__table tr:last-child td {
  border-bottom: 0;
}

.ethos-history__table tr.is-voided td {
  color: #837f77;
  background: #f2eeea;
}

.ethos-history__table td strong,
.ethos-history__table td small {
  display: block;
}

.ethos-history__table td strong {
  color: #171717;
  font-size: 12px;
}

.ethos-history__table td small {
  margin-top: 3px;
  color: #77736b;
  font-size: 9px;
}

.ethos-status-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  color: #51401d;
  background: #eee2c8;
  border: 1px solid #c7ac71;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ethos-status-label--active,
.ethos-status-label--submitted,
.ethos-status-label--recorded {
  color: #2d5132;
  background: #e1ede1;
  border-color: #7e9f82;
}

.ethos-status-label--voided {
  color: #6a2522;
  background: #f0ddda;
  border-color: #b66f69;
}

.ethos-delivery-label--sent {
  color: #2d5132;
  background: #e1ede1;
  border-color: #7e9f82;
}

.ethos-delivery-label--failed {
  color: #6a2522;
  background: #f0ddda;
  border-color: #b66f69;
}

.ethos-delivery-label--processing,
.ethos-delivery-label--retry {
  color: #4f452b;
  background: #f1e8d4;
  border-color: #bba266;
}

.ethos-delivery-label--pending {
  color: #4d4b47;
  background: #e8e6e1;
  border-color: #aaa69d;
}

.ethos-empty-state,
.ethos-loading-state {
  padding: 52px 24px;
  color: #6d6962;
  text-align: center;
}

.ethos-empty-state h2 {
  color: #191919;
  font-family: var(--ethos-serif);
  font-size: 28px;
  font-weight: 400;
}

.ethos-empty-state p,
.ethos-loading-state {
  margin-top: 7px;
  font-size: 12px;
}

.ethos-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 20px;
  color: #56524b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.ethos-detail__back {
  margin-bottom: 18px;
}

.ethos-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 0.28fr);
  gap: 34px;
  margin-top: 24px;
}

.ethos-delivery-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #eee7da;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-delivery-card > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ethos-delivery-card > div > strong {
  min-height: 25px;
}

.ethos-delivery-card small {
  color: #6f6a62;
  font-size: 9px;
}

.ethos-delivery-card p {
  max-width: 680px;
  color: #762e29;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ethos-detail__main > .ethos-review-section + .ethos-review-section {
  margin-top: 16px;
}

.ethos-detail__main > .ethos-review-section:last-child {
  grid-column: auto;
}

.ethos-detail__actions {
  align-self: start;
  padding: 22px;
  color: #fff;
  background: #171717;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-detail__actions .ethos-button {
  width: 100%;
}

.ethos-detail__actions .ethos-button + .ethos-button {
  margin-top: 11px;
}

.ethos-detail__actions p {
  margin-top: 17px;
  color: #bbb6ac;
  font-size: 10px;
  line-height: 1.55;
}

.ethos-audit {
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-audit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid #d1cdc4;
}

.ethos-audit-row div {
  display: grid;
  gap: 3px;
}

.ethos-audit-row strong {
  font-size: 12px;
}

.ethos-audit-row span,
.ethos-audit-row p,
.ethos-muted-copy {
  color: #77736c;
  font-size: 10px;
}

.ethos-audit-row > .ethos-audit-row__no-file {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #8a867e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.ethos-audit-changes {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.ethos-audit-changes li {
  display: grid;
  grid-template-columns: minmax(100px, 0.35fr) 1fr;
  gap: 10px;
  padding: 6px 8px;
  color: #5f5b54;
  background: #eee9df;
  font-size: 9px;
  line-height: 1.45;
}

.ethos-audit-changes b {
  color: #302e2a;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ethos-file-link {
  margin-top: 7px;
}

.ethos-file-link:hover {
  background: #eee4d1;
  border-color: #ad925c;
}

.ethos-file-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 7px;
}

.ethos-file-card .ethos-file-link {
  margin-top: 0;
}

.ethos-file-card .ethos-file-supersede {
  white-space: nowrap;
}

.ethos-file-card.is-superseded {
  grid-template-columns: minmax(0, 1fr);
  opacity: 0.78;
}

.ethos-file-card.is-superseded .ethos-file-link {
  background: #ece9e3;
  border-style: dashed;
}

.ethos-file-link em {
  margin-top: 3px;
  color: #655f57;
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
  white-space: normal;
}

.ethos-superseded-files {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #aaa49a;
}

.ethos-superseded-files h3 {
  margin: 0;
  color: #514e48;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.ethos-superseded-files > p {
  margin: 5px 0 10px;
  color: #77736c;
  font-size: 9px;
}

.ethos-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #171717;
  background: #faf8f3;
  border: 1px solid var(--ethos-gold-line);
  border-radius: 0;
  box-shadow: 0 30px 90px rgb(0 0 0 / 55%);
}

.ethos-dialog--wide {
  width: min(680px, calc(100vw - 32px));
}

.ethos-dialog::backdrop {
  background: rgb(5 5 5 / 78%);
  backdrop-filter: blur(5px);
}

.ethos-dialog form {
  display: grid;
  gap: 20px;
  padding: 26px;
}

.ethos-dialog__header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-dialog__header h2 {
  font-family: var(--ethos-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.ethos-dialog__header p {
  margin-top: 5px;
  color: #6d6962;
  font-size: 11px;
}

.ethos-dialog__close {
  width: 36px;
  height: 36px;
  color: #292824;
  background: transparent;
  border: 1px solid #aaa59b;
  border-radius: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ethos-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #d5d1c7;
}

.ethos-dialog__actions .ethos-button {
  min-width: 145px;
}

.ethos-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 1041px) {
  .ethos-transaction > .ethos-commission,
  .ethos-review > .ethos-commission,
  .ethos-receipt > .ethos-commission {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: calc(100vh - 57px);
    min-height: calc(100dvh - 57px);
  }
}

@media (max-width: 1240px) {
  .ethos-form-grid--address {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ethos-field--street {
    grid-column: 1 / -1;
  }

  .ethos-history__filters {
    grid-template-columns: 1fr 0.6fr 0.7fr;
  }

  .ethos-history__filters .ethos-button,
  .ethos-history__filters > .ethos-text-button {
    justify-self: start;
  }

  .ethos-delivery-health {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .ethos-delivery-health > .ethos-text-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 1040px) {
  .ethos-portal__hero {
    min-height: 164px;
  }

  .ethos-review {
    display: block;
    min-height: 0;
  }

  .ethos-history,
  .ethos-detail {
    min-height: 0;
    padding: 30px clamp(24px, 7vw, 64px) 48px;
  }

  .ethos-transaction__form-panel,
  .ethos-review__paper,
  .ethos-receipt__paper {
    padding-bottom: 34px;
  }

  .ethos-commission {
    padding-bottom: 104px;
  }

  .ethos-review > .ethos-commission,
  .ethos-receipt > .ethos-commission {
    padding-bottom: 42px;
  }

  .ethos-detail__layout {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.36fr);
  }
}

@media (max-width: 780px) {
  .ethos-form-grid--address,
  .ethos-form-grid--two,
  .ethos-review__sections,
  .ethos-detail__layout {
    grid-template-columns: 1fr;
  }

  .ethos-field--street,
  .ethos-review-section:last-child {
    grid-column: auto;
  }

  .ethos-history__heading,
  .ethos-detail__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ethos-history__heading-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .ethos-delivery-health {
    grid-template-columns: 1fr;
  }

  .ethos-delivery-health__counts {
    justify-content: flex-start;
  }

  .ethos-delivery-health > .ethos-text-button {
    grid-column: auto;
  }

  .ethos-history__summary {
    grid-template-columns: 1fr 1fr;
  }

  .ethos-history__filters {
    grid-template-columns: 1fr 1fr;
  }

  .ethos-history__filters > :first-child {
    grid-column: 1 / -1;
  }

  .ethos-detail__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ethos-detail__actions .ethos-button + .ethos-button {
    margin-top: 0;
  }

  .ethos-detail__actions p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .ethos-portal__header {
    grid-template-columns: 72px minmax(0, 1fr) 54px;
  }

  .ethos-field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
  .ethos-field select,
  .ethos-ops textarea {
    font-size: 16px;
  }

  .ethos-transaction__form-panel,
  .ethos-review__paper,
  .ethos-receipt__paper,
  .ethos-commission,
  .ethos-history,
  .ethos-detail {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ethos-page-heading h1 {
    font-size: clamp(39px, 11vw, 51px);
  }

  .ethos-form-section {
    padding-block: 22px;
  }

  .ethos-form-stack {
    gap: 17px;
  }

  .ethos-choice-group--three {
    grid-template-columns: 1fr;
  }

  .ethos-address {
    padding: 14px;
  }

  .ethos-address__heading,
  .ethos-signature__header,
  .ethos-mode-notice,
  .ethos-completion-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ethos-completion-notice {
    display: flex;
  }

  .ethos-combobox__control {
    grid-template-columns: 1fr;
  }

  .ethos-signature__alternative-control {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .ethos-signature__alternative input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border-right: 1px solid #aaa69e;
  }

  .ethos-signature__alternative .ethos-inline-button {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding-inline: 10px;
    border-top: 0;
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .ethos-combobox__control input {
    border-right: 1px solid #b9b9b8 !important;
  }

  .ethos-inline-button {
    min-height: 41px;
    border-top: 0;
  }

  .ethos-combobox__list {
    top: calc(100% - 61px);
  }

  .ethos-address__suggestions {
    top: 72px;
  }

  .ethos-review-section {
    padding: 14px;
  }

  .ethos-review-section dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ethos-review__actions,
  .ethos-dialog__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .ethos-review__actions .ethos-button,
  .ethos-dialog__actions .ethos-button {
    width: 100%;
    min-width: 0;
  }

  .ethos-history__filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .ethos-history__heading-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ethos-history__heading-actions .ethos-button {
    width: 100%;
  }

  .ethos-delivery-health {
    gap: 14px;
    padding: 15px;
  }

  .ethos-history__summary article {
    padding: 14px;
  }

  .ethos-history__summary strong {
    font-size: 22px;
  }

  .ethos-history__filters > :first-child {
    grid-column: auto;
  }

  .ethos-history__filters .ethos-button {
    width: 100%;
  }

  .ethos-history__filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ethos-history__filter-actions .ethos-text-button {
    align-self: flex-start;
  }

  .ethos-pagination {
    justify-content: space-between;
    gap: 10px;
  }

  .ethos-detail__actions {
    grid-template-columns: 1fr;
  }

  .ethos-detail__actions p {
    grid-column: auto;
  }

  .ethos-delivery-card {
    align-items: stretch;
    flex-direction: column;
  }

  .ethos-delivery-card .ethos-button {
    width: 100%;
  }

  .ethos-file-card {
    grid-template-columns: 1fr;
  }

  .ethos-file-card .ethos-file-supersede {
    justify-self: start;
  }

  .ethos-audit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ethos-signature canvas {
    height: 130px;
  }

  .ethos-dialog form {
    padding: 20px;
  }

  .ethos-dialog__header h2 {
    font-size: 30px;
  }
}

@media (max-width: 360px) {
  .ethos-history__summary {
    grid-template-columns: 1fr;
  }

  .ethos-history__summary strong {
    font-size: 24px;
    overflow-wrap: normal;
  }

  .ethos-delivery-health__failures article {
    align-items: stretch;
    flex-direction: column;
  }

  .ethos-delivery-health__failures .ethos-text-button {
    align-self: flex-start;
  }

  .ethos-portal__header .ethos-masthead-title {
    gap: 8px;
  }

  .ethos-portal__header .ethos-masthead-title b {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .ethos-portal__header .ethos-masthead-title > span {
    width: 18px;
  }
}

/* Alabama independent contractor agreement workflow */
.ethos-agreement,
.ethos-agreement-review,
.ethos-agreement-status {
  display: grid;
  grid-template-columns: minmax(0, 2.18fr) minmax(340px, 0.92fr);
  align-items: stretch;
  min-height: calc(100vh - 233px);
  min-height: calc(100dvh - 233px);
}

.ethos-agreement__paper,
.ethos-agreement-review__paper,
.ethos-agreement-status__paper {
  min-width: 0;
  padding: 34px clamp(30px, 3.2vw, 54px) 54px;
  background: linear-gradient(110deg, #fff, #f7f4ee 92%);
}

.ethos-agreement__notice {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 17px;
  color: #403721;
  background: linear-gradient(105deg, #f1e7d2, #e8d8b6);
  border-top: 1px solid #c2a565;
  border-bottom: 1px solid #c2a565;
}

.ethos-agreement__notice strong,
.ethos-agreement-rule > span,
.ethos-agreement-sender > span,
.ethos-agreement-summary__label,
.ethos-agreement-summary__gate > span,
.ethos-agreement-review__state > span,
.ethos-agreement-document header span,
.ethos-agreement-document h3 {
  font-family: var(--ethos-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.35;
}

.ethos-agreement__notice p {
  color: #554d3b;
  font-size: 11px;
  line-height: 1.55;
}

.ethos-agreement-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 25px 0 0;
  border-top: 1px solid #c6b995;
  border-bottom: 1px solid #c6b995;
}

.ethos-agreement-steps button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 60px;
  padding: 12px 14px;
  color: #6c6860;
  background: transparent;
  border: 0;
  border-right: 1px solid #d2ccbe;
  border-radius: 0;
  cursor: pointer;
}

.ethos-agreement-steps button:last-child {
  border-right: 0;
}

.ethos-agreement-steps button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: transparent;
}

.ethos-agreement-steps button.is-active {
  color: #151515;
  background: rgb(218 198 153 / 22%);
}

.ethos-agreement-steps button.is-active::after {
  background: var(--ethos-gold-deep);
}

.ethos-agreement-steps button:disabled {
  color: #a5a198;
  cursor: not-allowed;
}

.ethos-agreement-steps span {
  color: var(--ethos-gold-deep);
  font-family: var(--ethos-serif);
  font-size: 25px;
  line-height: 1;
}

.ethos-agreement-steps b {
  overflow: hidden;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ethos-agreement-step {
  padding: 28px 0 0;
}

.ethos-agreement-step > legend {
  float: left;
  width: 100%;
  margin-bottom: 20px;
  color: #171719;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.21em;
  line-height: 1.3;
}

.ethos-agreement-step > legend + * {
  clear: both;
}

.ethos-agreement-step > .ethos-form-grid,
.ethos-agreement-step > .ethos-field,
.ethos-agreement-step > .ethos-agreement-check,
.ethos-agreement-step > .ethos-agreement-rule,
.ethos-agreement-step > .ethos-agreement-cap-grid,
.ethos-agreement-step > .ethos-agreement-exception,
.ethos-agreement-step > .ethos-agreement-signers {
  margin-bottom: 20px;
}

.ethos-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ethos-agreement-email {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.72fr);
  gap: 18px;
  margin: 20px 0;
}

.ethos-agreement-email__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ethos-agreement-email__control input {
  border-right: 0 !important;
}

.ethos-agreement-email__status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  padding: 15px 17px;
  color: #443b29;
  background: #eee5d2;
  border-left: 3px solid var(--ethos-gold-deep);
}

.ethos-agreement-email__status > span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.ethos-agreement-email__status strong {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
}

.ethos-agreement-email__status p {
  margin-top: 4px;
  color: #716956;
  font-size: 10px;
  line-height: 1.45;
}

.ethos-agreement-email__status.is-success {
  color: #294b31;
  background: #e4ecdf;
  border-left-color: var(--ethos-success);
}

.ethos-agreement-email__status.is-error {
  color: #632925;
  background: #f1ded9;
  border-left-color: var(--ethos-error);
}

.ethos-agreement-email__options {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.ethos-agreement-email-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  color: #282621;
  background: rgb(255 255 255 / 66%);
  border: 1px solid #c2b99f;
  border-radius: 0;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.ethos-agreement-email-option b {
  color: #66522c;
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ethos-agreement-email-option.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

.ethos-agreement-check-field {
  min-width: 0;
}

.ethos-agreement-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  min-height: 62px;
  padding: 15px;
  color: #2a2925;
  background: rgb(255 255 255 / 54%);
  border: 1px solid #bdb9af;
  cursor: pointer;
}

.ethos-agreement-check--compact {
  height: 100%;
  margin: 0;
}

.ethos-agreement-check--email {
  margin-top: 10px;
  background: #f3e9d5;
  border-left: 3px solid var(--ethos-gold-deep);
}

.ethos-agreement-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ethos-gold-deep);
}

.ethos-agreement-check > span {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.5;
}

.ethos-agreement-check b {
  margin-bottom: 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.ethos-agreement-check em {
  color: #bb2a28;
  font-style: normal;
}

.ethos-agreement-check.has-error {
  border-color: var(--ethos-error);
  box-shadow: inset 3px 0 0 var(--ethos-error);
}

.ethos-agreement-rule {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(180px, 0.55fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  color: #3d3627;
  background: #eee5d2;
  border-left: 3px solid var(--ethos-gold-deep);
}

.ethos-agreement-rule strong {
  font-family: var(--ethos-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.ethos-agreement-rule p {
  color: #696355;
  font-size: 10px;
  line-height: 1.55;
}

.ethos-agreement-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #c5bda9;
}

.ethos-agreement-cap-grid article {
  min-width: 0;
  padding: 17px;
  background: rgb(255 255 255 / 42%);
}

.ethos-agreement-cap-grid article + article {
  border-left: 1px solid #c5bda9;
}

.ethos-agreement-cap-grid span,
.ethos-agreement-cap-grid small {
  display: block;
}

.ethos-agreement-cap-grid span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ethos-agreement-cap-grid strong {
  display: block;
  margin-top: 6px;
  font-family: var(--ethos-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.ethos-agreement-cap-grid small {
  margin-top: 6px;
  color: #716d65;
  font-size: 9px;
  line-height: 1.4;
}

.ethos-agreement-exception {
  padding: 18px;
  background: rgb(230 221 199 / 52%);
  border-left: 2px solid var(--ethos-gold-deep);
}

.ethos-agreement-exception > .ethos-field {
  margin-top: 16px;
}

.ethos-agreement-step__actions,
.ethos-agreement-status__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-agreement-step__actions .ethos-button {
  min-width: 210px;
}

.ethos-agreement-sender {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 15px 17px;
  background: #181818;
  border-left: 3px solid var(--ethos-gold);
}

.ethos-agreement-sender > span,
.ethos-agreement-sender strong,
.ethos-agreement-sender a {
  color: #fff;
}

.ethos-agreement-sender strong {
  margin-top: 5px;
  font-family: var(--ethos-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.ethos-agreement-sender a {
  margin-top: 6px;
  color: #d9c493;
  font-size: 10px;
  text-decoration: none;
}

.ethos-agreement-signers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  padding: 18px;
  background: rgb(255 255 255 / 54%);
  border: 1px solid #c3bba8;
}

.ethos-agreement-signers article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ethos-agreement-signers article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #171717;
  background: #ddca9e;
  font-family: var(--ethos-serif);
  font-size: 20px;
}

.ethos-agreement-signers b {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.ethos-agreement-signers p {
  margin-top: 4px;
  color: #6d6961;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ethos-agreement-signers > i {
  position: relative;
  height: 1px;
  margin: 0 9px;
  background: var(--ethos-gold-deep);
}

.ethos-agreement-signers > i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid var(--ethos-gold-deep);
  border-right: 1px solid var(--ethos-gold-deep);
  transform: rotate(45deg);
}

.ethos-agreement-summary {
  min-width: 0;
  min-height: 100%;
  padding: 42px clamp(26px, 3vw, 44px) 48px;
  color: #fff;
  background: radial-gradient(circle at 70% 12%, #1e1e1d, #101111 68%);
  border-left: 1px solid var(--ethos-gold-line);
}

.ethos-agreement-summary__label {
  color: var(--ethos-gold);
}

.ethos-agreement-summary h2 {
  margin-top: 10px;
  font-family: var(--ethos-serif);
  font-size: clamp(40px, 3.1vw, 52px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.ethos-agreement-summary > div > p {
  margin-top: 22px;
  color: #bbb9b5;
  font-size: 11px;
  line-height: 1.6;
}

.ethos-agreement-summary dl {
  margin-top: 30px;
}

.ethos-agreement-summary dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.ethos-agreement-summary dt {
  color: #a9a7a2;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ethos-agreement-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #f0efeb;
  font-size: 11px;
  text-align: right;
}

.ethos-agreement-summary__gate,
.ethos-agreement-review__state {
  margin-top: 32px;
  padding: 17px;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 17%);
  border-left: 3px solid var(--ethos-gold);
}

.ethos-agreement-summary__gate.is-ready {
  border-left-color: #80a487;
}

.ethos-agreement-summary__gate.is-blocked {
  border-left-color: #c59f58;
}

.ethos-agreement-summary__gate strong,
.ethos-agreement-review__state strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.ethos-agreement-summary__gate p,
.ethos-agreement-review__state p {
  margin-top: 7px;
  color: #bdbab3;
  font-size: 10px;
  line-height: 1.5;
}

.ethos-agreement-review__alert {
  margin-top: 18px;
  padding: 14px 16px;
  color: #4c3b1e;
  background: #f3e9d5;
  border-left: 3px solid var(--ethos-gold-deep);
  font-size: 11px;
  line-height: 1.55;
}

.ethos-agreement-review__alert strong {
  font-size: 9px;
  letter-spacing: 0.15em;
}

.ethos-agreement-review__alert p {
  margin-top: 4px;
}

.ethos-agreement-document {
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid #c9c2b2;
  box-shadow: 0 15px 34px rgb(52 45 31 / 9%);
}

.ethos-agreement-document > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-agreement-document header span {
  color: #7b6840;
}

.ethos-agreement-document header h2 {
  margin-top: 4px;
  font-family: var(--ethos-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.ethos-agreement-document header > strong {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #161512;
  background: #e3d2aa;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ethos-agreement-document dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 14px;
}

.ethos-agreement-document dl > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #ddd8cd;
}

.ethos-agreement-document dt {
  color: #6b675f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ethos-agreement-document dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 11px;
}

.ethos-agreement-review .ethos-review-section dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ethos-agreement-document section {
  margin-top: 24px;
}

.ethos-agreement-document h3 {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ethos-gold-line);
}

.ethos-agreement-document article {
  padding: 12px 0;
  border-bottom: 1px solid #ddd8cd;
}

.ethos-agreement-document article b {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ethos-agreement-document article p {
  margin-top: 5px;
  color: #5f5c55;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ethos-agreement-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: #c9c2b2;
  border: 1px solid #c9c2b2;
}

.ethos-agreement-timeline article {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 78px;
  padding: 13px;
  background: #f6f2e9;
}

.ethos-agreement-timeline article > span {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #655738;
  border: 1px solid #b69a60;
  font-family: var(--ethos-serif);
  font-size: 16px;
}

.ethos-agreement-timeline b,
.ethos-agreement-timeline small {
  display: block;
}

.ethos-agreement-timeline b {
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.ethos-agreement-timeline small {
  margin-top: 3px;
  color: #77736c;
  font-size: 8px;
}

.ethos-agreement-timeline article.is-complete {
  background: #e7eee2;
}

.ethos-agreement-timeline article.is-complete > span {
  color: #fff;
  background: var(--ethos-success);
  border-color: var(--ethos-success);
}

.ethos-agreement-timeline article.is-current {
  background: #e9d9b5;
  box-shadow: inset 0 -3px 0 var(--ethos-gold-deep);
}

.ethos-agreement-status__actions {
  flex-wrap: wrap;
}

.ethos-agreement-status__actions .ethos-text-button {
  margin-left: auto;
}

.ethos-agreement-history {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--ethos-gold-line);
}

.ethos-agreement-history > header,
.ethos-agreement-history__list article,
.ethos-agreement-history__list article > div:last-child {
  display: flex;
  align-items: center;
}

.ethos-agreement-history > header {
  justify-content: space-between;
  gap: 18px;
}

.ethos-agreement-history header span {
  color: #806d43;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ethos-agreement-history h2 {
  margin-top: 4px;
  font-family: var(--ethos-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.ethos-agreement-history header p,
.ethos-agreement-history__state {
  margin-top: 7px;
  color: #6e6960;
  font-size: 10px;
  line-height: 1.5;
}

.ethos-agreement-history__list {
  margin-top: 16px;
  border-top: 1px solid #d5cebf;
}

.ethos-agreement-history__list article {
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #d5cebf;
}

.ethos-agreement-history__list article strong,
.ethos-agreement-history__list article span {
  display: block;
}

.ethos-agreement-history__list article strong {
  font-size: 11px;
}

.ethos-agreement-history__list article span {
  margin-top: 4px;
  color: #6e6960;
  font-size: 9px;
}

.ethos-agreement-history__list article > div:last-child {
  flex: 0 0 auto;
  gap: 14px;
}

.ethos-agreement-summary__gate--neutral {
  margin-top: 14px;
  border-left-color: #89857c;
}

@media (min-width: 1041px) {
  .ethos-agreement > .ethos-agreement-summary,
  .ethos-agreement-review > .ethos-agreement-summary,
  .ethos-agreement-status > .ethos-agreement-summary {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: calc(100vh - 57px);
    min-height: calc(100dvh - 57px);
  }
}

@media (max-width: 1180px) {
  .ethos-agreement-rule {
    grid-template-columns: 1fr 1fr;
  }

  .ethos-agreement-rule p {
    grid-column: 1 / -1;
  }

  .ethos-agreement-document dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .ethos-agreement,
  .ethos-agreement-review,
  .ethos-agreement-status {
    display: block;
    min-height: 0;
  }

  .ethos-agreement-summary {
    min-height: 0;
    padding-bottom: 42px;
    border-top: 1px solid var(--ethos-gold-line);
    border-left: 0;
  }
}

@media (max-width: 780px) {
  .ethos-form-grid--three,
  .ethos-agreement-email,
  .ethos-agreement-cap-grid {
    grid-template-columns: 1fr;
  }

  .ethos-agreement-cap-grid article + article {
    border-top: 1px solid #c5bda9;
    border-left: 0;
  }

  .ethos-agreement-steps {
    grid-template-columns: repeat(4, minmax(135px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .ethos-agreement-rule {
    grid-template-columns: 1fr;
  }

  .ethos-agreement-rule p {
    grid-column: auto;
  }

  .ethos-agreement-signers {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ethos-agreement-signers > i {
    width: 1px;
    height: 26px;
    margin: 0 0 0 16px;
  }

  .ethos-agreement-signers > i::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .ethos-agreement-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ethos-agreement__paper,
  .ethos-agreement-review__paper,
  .ethos-agreement-status__paper,
  .ethos-agreement-summary {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ethos-agreement__notice {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .ethos-agreement-email__control {
    grid-template-columns: 1fr;
  }

  .ethos-agreement-email__control input {
    border-right: 1px solid #b9b9b8 !important;
  }

  .ethos-agreement-email__control .ethos-inline-button {
    width: 100%;
  }

  .ethos-agreement-step__actions,
  .ethos-agreement-status__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .ethos-agreement-history__list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .ethos-agreement-step__actions > span {
    display: none;
  }

  .ethos-agreement-step__actions .ethos-button,
  .ethos-agreement-status__actions .ethos-button {
    width: 100%;
    min-width: 0;
  }

  .ethos-agreement-status__actions .ethos-text-button {
    margin: 8px 0 0;
  }

  .ethos-agreement-document {
    padding: 17px;
  }

  .ethos-agreement-document > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ethos-agreement-document dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ethos-agreement-timeline {
    grid-template-columns: 1fr;
  }
}

@media print {
  .ethos-history__filters,
  .ethos-pagination,
  .ethos-detail__actions,
  .ethos-review__actions,
  .ethos-agreement-steps,
  .ethos-agreement-step__actions,
  .ethos-agreement-status__actions,
  .ethos-dialog,
  .ethos-skip-link {
    display: none !important;
  }
}


/* 2026-10-01: Scoped Admin layout repairs. Append after the existing portal CSS. */

/* Keep all seven queue columns usable without changing the mobile card layout. */
@media (min-width: 781px) {
  .ethos-onboarding__table { min-width: 960px; table-layout: auto; }
  .ethos-onboarding__table th:nth-child(n) { width: auto; }
  .ethos-onboarding__table th:first-child { width: 21%; }
  .ethos-onboarding__table th:nth-child(3) { width: 20%; }
  .ethos-onboarding__table th:last-child { width: 128px; }
  .ethos-onboarding__table th, .ethos-onboarding__table td { padding-inline: 12px; }
  .ethos-onboarding__table td:last-child .ethos-text-button { min-width: 88px; white-space: nowrap; }
}

/* The checklist must fit beside intake; SAVE gets its own full-width row. */
.ethos-onboarding-detail__layout > *, .ethos-onboarding-step > * { min-width: 0; }
@media (min-width: 781px) and (max-width: 1480px) {
  .ethos-onboarding-step { grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 0.8fr) minmax(150px, 1fr); }
  .ethos-onboarding-step__completion { grid-column: 1 / -1; justify-self: stretch; }
}

/* A two-row step selector keeps full labels visible without nested scrolling. */
@media (max-width: 780px) {
  .ethos-agreement-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .ethos-agreement-steps button { min-height: 64px; padding: 12px; text-align: left; }
  .ethos-agreement-steps button:nth-child(even) { border-right: 0; }
  .ethos-agreement-steps button:nth-child(n + 3) { border-top: 1px solid #d2ccbe; }
  .ethos-agreement-steps b { overflow: visible; font-size: 9px; letter-spacing: 0.1em; line-height: 1.45; text-overflow: clip; white-space: normal; }
}

/* Match the established portal spacing for the new social request section. */
.ethos-social-requests { min-width: 0; padding: 38px clamp(28px, 4vw, 64px) 56px; background: linear-gradient(110deg, #fff, #f5f1e9); }
.ethos-social-requests > .ethos-form-section { max-width: 980px; }
.ethos-social-requests h2 { margin: 0 0 12px; font-family: var(--ethos-serif); font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; line-height: 1.15; }
.ethos-social-requests .ethos-field-hint { max-width: 760px; margin: 14px 0; line-height: 1.65; }
.ethos-social-requests .ethos-button { max-width: 100%; margin-block: 4px; line-height: 1.4; text-align: center; white-space: normal; }
@media (max-width: 1040px) { .ethos-social-requests { padding: 30px clamp(24px, 7vw, 64px) 48px; } }
@media (max-width: 680px) {
  .ethos-social-requests { padding-inline: 20px; }
  .ethos-social-requests .ethos-button { width: 100%; min-width: 0; }
}

/* 2026-10-03: Additive onboarding layout and motion refinement.
 * Append after the existing Admin portal CSS. No checklist or save logic changes.
 */

/* Use the activity section's available width, not the full browser width:
 * the desktop intake sidebar can leave the activity log less than 600px wide.
 */
.ethos-onboarding-activity {
  min-width: 0;
  container-name: ethos-onboarding-activity;
  container-type: inline-size;
}

.ethos-onboarding-activity__row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

@container ethos-onboarding-activity (max-width: 780px) {
  .ethos-onboarding-activity__head {
    display: none;
  }

  #ethos-onboarding-activity {
    display: grid;
    gap: 10px;
  }

  .ethos-onboarding-activity__row {
    grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr);
    gap: 8px 14px;
    padding: 14px;
    background: rgb(255 255 255 / 58%);
    border: 1px solid #d2cec6;
    border-left: 2px solid var(--ethos-gold-deep);
    box-shadow: 0 9px 22px rgb(34 29 22 / 5%);
  }

  .ethos-onboarding-activity__row > span:first-child {
    grid-column: 1;
    grid-row: 1;
    color: #665f53;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .ethos-onboarding-activity__row > strong {
    grid-column: 2;
    grid-row: 1;
    color: #211f1c;
    font-family: var(--ethos-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
  }

  .ethos-onboarding-activity__row > span:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    color: #4c4842;
    font-size: 11px;
    line-height: 1.5;
  }

  .ethos-onboarding-activity__row > span:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
    color: #766f65;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .ethos-onboarding-activity__action {
    grid-column: 1 / -1;
    grid-row: 4;
    padding-top: 2px;
  }

  .ethos-onboarding-activity__undo {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Motion only enhances existing, truthful UI states. Completion entries are
 * rendered by the existing JavaScript after a successful save and refresh.
 */
@media (prefers-reduced-motion: no-preference) {
  .ethos-onboarding:not([hidden]),
  .ethos-onboarding-detail:not([hidden]) {
    animation: ethos-onboarding-surface-enter 220ms ease-out;
  }

  .ethos-onboarding-activity__row {
    animation: ethos-onboarding-surface-enter 180ms ease-out;
  }

  .ethos-onboarding-step__check > span {
    transition: background-color 160ms ease, border-color 160ms ease;
  }

  .ethos-onboarding-step__completion .ethos-text-button {
    transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
  }

  .ethos-onboarding-step__completion .ethos-text-button.is-loading {
    opacity: 0.62;
  }

  @keyframes ethos-onboarding-surface-enter {
    from { opacity: 0.45; }
    to { opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ethos-onboarding,
  .ethos-onboarding-detail,
  .ethos-onboarding-activity__row {
    animation: none !important;
  }

  .ethos-onboarding-step__check > span,
  .ethos-onboarding-step__completion .ethos-text-button {
    transition: none !important;
  }
}
