.managed-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 22px 0 26px;
}
.managed-toolbar .work-search {
  flex: 1;
  max-width: 600px;
}
#app .managed-toolbar p {
  font-size: 14px;
  color: #61745f;
  margin: 0;
}
.managed-list {
  display: grid;
  gap: 20px;
}
.managed-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid #dce3d4;
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 5px 15px #293e2e04;
}
.managed-photo {
  position: relative;
  min-height: 195px;
  overflow: hidden;
  border-radius: 9px;
  background: #edf1e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5e765c;
}
.managed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.managed-photo > span:first-child {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.managed-photo small {
  font-size: 13px;
}
.managed-photo .managed-photo-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 700;
  background: #fffef9ed;
  padding: 6px 10px;
  border-radius: 5px;
  color: #385740;
}
.managed-content {
  min-width: 0;
  padding: 3px 0;
}
.managed-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
#app .workspace .managed-card-heading h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 7px;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
#app .managed-card-heading p {
  font-size: 15px;
  margin: 0;
  color: #657460;
}
.managed-card .work-status {
  flex-shrink: 0;
  white-space: nowrap;
}
.managed-card .status-draft {
  background: #eeefe9;
  color: #66715d;
}
.managed-card .status-active {
  background: #e7f2e7;
  color: #29573a;
}
.managed-card .status-under-offer {
  background: #f7eedb;
  color: #86692e;
}
.managed-card .status-expired,
.managed-card .status-withdrawn {
  background: #f5e9e3;
  color: #8d4e3e;
}
.managed-card-details {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 22px 0;
}
.managed-card-details > div {
  display: grid;
  gap: 4px;
}
.managed-card-details span {
  font-size: 12px;
  color: #71816a;
}
#app .managed-card-details strong {
  font-size: 27px;
  color: #28583d;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.managed-card-details b {
  font-size: 15px;
  font-weight: 600;
}
#app .managed-card-details p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: #61715b;
}
.managed-card-footer {
  border-top: 1px solid #e7ebdf;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.managed-card-footer > small {
  font-size: 12px;
  color: #73806b;
}
.managed-card-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
#app .managed-card-actions .button {
  font-size: 14px;
  min-height: 40px;
  padding: 9px 13px;
  white-space: nowrap;
}
.managed-menu {
  position: relative;
  align-self: stretch;
}
.managed-menu summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4ddcc;
  border-radius: 7px;
  width: 40px;
  height: 100%;
  min-height: 40px;
  list-style: none;
}
.managed-menu summary::-webkit-details-marker {
  display: none;
}
.managed-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 4;
  min-width: 190px;
  padding: 7px;
  border: 1px solid #d8dfd0;
  box-shadow: 0 12px 35px #243b2920;
  background: #fffefa;
  border-radius: 9px;
  display: grid;
}
#app .managed-menu .button {
  justify-content: flex-start;
}
#dialog:has(.listing-editor) {
  width: min(1000px, calc(100% - 32px));
  height: min(850px, calc(100dvh - 32px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe2d2;
  border-radius: 20px;
  box-shadow: 0 25px 110px #1b332d40;
  color: #294b3a;
  background: #fffefa;
}
#dialog:has(.listing-editor)[open] {
  display: flex;
  flex-direction: column;
}
.listing-editor-heading {
  padding: 23px 30px 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid #e5e9dd;
}
#dialog .listing-editor-heading h2 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0 0 5px;
}
#dialog .listing-editor-heading p {
  font-size: 15px;
  color: #6d7c65;
  margin: 0;
}
#dialog .listing-editor-close {
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  background: #f0f3e9;
  box-shadow: none;
}
.listing-editor {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.listing-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 30px;
  background: #f7f8f2;
  flex-shrink: 0;
  border-bottom: 1px solid #e6eadf;
}
#dialog .listing-step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 9px 6px;
  min-width: 0;
  border-radius: 6px;
  color: #6a7962;
  font-size: 14px;
  font-weight: 600;
}
.listing-step b {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  width: 27px;
  height: 27px;
  border: 1px solid #d6deca;
  border-radius: 50%;
  color: #65765c;
  background: #fffefa;
}
#dialog .listing-step[aria-current="step"] {
  color: #214f38;
}
.listing-step[aria-current="step"] b {
  background: #28583d;
  border-color: #28583d;
  color: #fff;
}
.listing-step.is-past b {
  background: #e8efdf;
  color: #365e40;
  border-color: #b8c7a9;
}
#dialog .listing-step:hover {
  background: #eaf0e2;
  color: #28583d;
  transform: none;
}
.listing-editor-body {
  padding: 27px 34px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
  scrollbar-gutter: stable;
}
.listing-editor [hidden] {
  display: none !important;
}
.listing-section-heading {
  margin: 0 0 24px;
}
.listing-section-heading > span {
  font-size: 12px;
  color: #8a7545;
  font-weight: 600;
}
#dialog .listing-section-heading h3 {
  margin: 6px 0 9px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  outline: none;
}
#dialog .listing-section-heading p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: #687960;
}
.listing-editor .form-grid {
  gap: 21px;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#dialog .listing-editor label {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
#dialog .listing-editor input:not([type="checkbox"]):not([type="file"]),
#dialog .listing-editor select,
#dialog .listing-editor textarea {
  font-size: 16px;
  line-height: 1.5;
  min-width: 0;
  width: 100%;
  border: 1px solid #ced9c7;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: #31543b;
  min-height: 49px;
}
#dialog .listing-editor input:focus-visible,
#dialog .listing-editor select:focus-visible,
#dialog .listing-editor textarea:focus-visible {
  outline: 2px solid #8ba47b;
  outline-offset: 2px;
}
.listing-editor textarea {
  resize: vertical;
}
.listing-facts-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
#dialog .listing-editor .listing-helper {
  font-size: 13px;
  line-height: 1.6;
  color: #718166;
  margin: 8px 0 0;
  font-weight: 400;
}
.listing-editor-footer {
  flex-shrink: 0;
  background: #fffefa;
  padding: 14px 30px 19px;
  border-top: 1px solid #e0e7d7;
  box-shadow: 0 -8px 24px #233b2c04;
}
.listing-editor-footer .form-error {
  margin: 0 0 10px;
  font-size: 13px;
}
.listing-editor-footer .form-error:empty {
  display: none;
}
.listing-editor-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.listing-save-state {
  font-size: 13px;
  color: #7a836f;
  margin-right: auto;
}
#dialog .listing-editor-controls .button {
  font-size: 15px;
  min-height: 46px;
  padding: 11px 19px;
}
#dialog .listing-editor-controls .listing-back {
  padding-left: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.listing-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 17px;
  background: #f1f4e9;
  border-radius: 9px;
  margin-bottom: 17px;
}
#dialog .listing-location-bar p {
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}
#dialog .listing-location-bar .button {
  flex-shrink: 0;
  font-size: 14px;
}
#dialog .listing-editor .small-map {
  height: 270px;
  border: 1px solid #dde3d4;
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
}
.listing-coordinates,
.listing-estimates,
.listing-review-description {
  border: 1px solid #e0e5d7;
  border-radius: 9px;
  padding: 15px 18px;
  margin-top: 22px;
}
.listing-coordinates summary,
.listing-estimates summary,
.listing-review-description summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.listing-coordinates .form-grid,
.listing-estimates .form-grid {
  margin-top: 20px;
}
.listing-estimates {
  margin: 0;
}
.listing-estimates summary span {
  font-size: 12px;
  color: #7b856c;
  font-weight: 400;
  margin-left: 7px;
}
#dialog .listing-editor .listing-confirm {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  background: #f3f5ed;
  padding: 17px;
  border: 1px solid #e0e6d5;
  border-radius: 9px;
  margin-top: 22px;
}
.listing-confirm input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: #28583d;
}
#dialog .listing-edit-notice {
  background: #faf1de;
  border: 1px solid #eadab2;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
  color: #816b39;
}
#dialog .listing-editor label.listing-photo-upload {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px dashed #a7bc98;
  border-radius: 11px;
  background: #f5f8ee;
  padding: 24px;
  cursor: pointer;
  overflow: hidden;
}
.listing-photo-upload .listing-upload-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.listing-photo-upload strong {
  font-size: 17px;
}
#dialog .listing-photo-upload small {
  font-size: 13px;
  color: #728268;
}
.listing-photo-upload .listing-upload-cta {
  margin-left: auto;
  background: #28583d;
  padding: 10px 15px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.listing-photo-upload .listing-upload-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e6eddd;
  color: #28583d;
}
.listing-editor-controls .listing-save {
  order: 1;
}
.listing-editor-controls .listing-publish {
  order: 2;
}
.listing-editor-controls [data-act="listing-next"] {
  order: 3;
}
.listing-photo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.listing-photo-upload:focus-within {
  outline: 2px solid #8ba47b;
  outline-offset: 3px;
}
#dialog #listing-photo-total {
  font-size: 14px;
  color: #687e5d;
  letter-spacing: 0;
  font-weight: 500;
  vertical-align: middle;
  margin-left: 8px;
}
.listing-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}
.listing-photo-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe3cf;
  border-radius: 9px;
  background: #fff;
}
.listing-photo-item > div:first-child {
  aspect-ratio: 4/3;
  position: relative;
}
.listing-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-photo-item > div:first-child > span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #fffef5eb;
  color: #385d40;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
}
#dialog .listing-photo-remove {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 29px;
  height: 29px;
  min-height: 0;
  min-width: 0;
  padding: 5px;
  background: #fffefaeb;
  border: 0;
  box-shadow: none;
  color: #31533c;
}
.listing-photo-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
}
#dialog .listing-photo-tools .button {
  font-size: 13px;
  min-height: 38px;
}
.listing-photo-tools > b {
  font-size: 13px;
}
#dialog .listing-photo-tools .button {
  padding: 5px;
  min-height: 32px;
  min-width: 27px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: none;
}
.listing-photo-tools > b {
  font-size: 11px;
  margin-right: auto;
  padding-left: 4px;
  color: #466d45;
}
.listing-photo-tools > .button:first-child {
  margin-right: auto;
}
.listing-review-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 23px;
  border: 1px solid #dce3d2;
  border-radius: 12px;
  padding: 14px;
  background: #f8f9f3;
  align-items: center;
}
.listing-review-photo {
  height: 155px;
  background: #e9efdf;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.listing-review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-review-photo span {
  position: absolute;
  bottom: 9px;
  left: 9px;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #fffef3e8;
}
#dialog .listing-review-card h4 {
  font-size: 23px;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
#dialog .listing-review-card p {
  font-size: 14px;
  color: #6c7a62;
  margin: 0 0 13px;
  line-height: 1.6;
}
.listing-review-card strong {
  display: block;
  font-size: 27px;
  color: #28583d;
  line-height: 1.2;
}
#dialog .listing-review-card small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  color: #74836a;
}
.listing-review-lines {
  margin-top: 20px;
}
.listing-review-lines > div {
  display: grid;
  grid-template-columns: 145px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #e7ebdf;
}
.listing-review-lines span {
  font-size: 13px;
  color: #7a856d;
}
.listing-review-lines strong {
  font-size: 14px;
  font-weight: 600;
}
#dialog .listing-review-lines .button {
  font-size: 13px;
  padding: 5px;
  min-height: 32px;
  box-shadow: none;
}
#dialog .listing-review-description h4 {
  font-size: 15px;
  margin: 19px 0 6px;
}
#dialog .listing-review-description p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: #687960;
}
@media (max-width: 1200px) {
  .managed-card {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }
  .managed-card-details {
    gap: 22px;
  }
  .managed-card-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .managed-toolbar {
    display: block;
    margin: 20px 0;
  }
  #app .managed-toolbar p {
    margin-top: 12px;
    font-size: 13px;
  }
  .managed-card {
    grid-template-columns: 1fr;
    padding: 13px;
    gap: 16px;
  }
  .managed-photo {
    min-height: 0;
    height: 180px;
  }
  #app .workspace .managed-card-heading h3 {
    font-size: 22px;
  }
  .managed-card-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  #app .managed-card-heading p {
    font-size: 14px;
  }
  .managed-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
  }
  .managed-card-details > p {
    grid-column: 2;
    grid-row: 1/3;
  }
  #app .managed-card-details strong {
    font-size: 26px;
  }
  .managed-card-footer {
    gap: 14px;
    display: block;
  }
  .managed-card-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }
  #app .managed-card-actions .button {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 13px;
  }
  #app .managed-menu .button {
    width: 100%;
    justify-content: flex-start;
  }
  #dialog:has(.listing-editor) {
    width: calc(100% - 12px);
    height: calc(100dvh - 12px);
    border-radius: 14px;
  }
  .listing-editor-heading {
    padding: 18px 18px 15px;
  }
  #dialog .listing-editor-heading h2 {
    font-size: 25px;
  }
  #dialog .listing-editor-heading p {
    font-size: 13px;
  }
  .listing-steps {
    padding: 10px 14px;
    gap: 4px;
  }
  #dialog .listing-step {
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    padding: 5px 0;
    font-size: 10px;
  }
  .listing-step b {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  .listing-editor-body {
    padding: 22px 18px 28px;
    scrollbar-gutter: auto;
  }
  #dialog .listing-section-heading h3 {
    font-size: 25px;
  }
  #dialog .listing-section-heading p {
    font-size: 15px;
  }
  .listing-editor .form-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .listing-facts-inputs {
    gap: 10px;
  }
  #dialog .listing-facts-inputs label {
    font-size: 12px;
  }
  #dialog .listing-facts-inputs input {
    padding: 12px 8px;
  }
  .listing-editor-footer {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .listing-editor-controls {
    gap: 8px;
    flex-wrap: wrap;
  }
  .listing-save-state {
    display: none;
  }
  #dialog .listing-editor-controls .button {
    font-size: 13px;
    padding: 10px 12px;
    flex: 1;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
  }
  #dialog .listing-editor-controls .listing-back {
    flex: 0 0 auto;
    padding: 10px 4px;
    font-size: 12px;
    gap: 3px;
  }
  .listing-location-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }
  #dialog .listing-editor .small-map {
    height: 220px;
  }
  #dialog .listing-editor .listing-confirm {
    font-size: 14px;
    padding: 14px;
  }
  #dialog .listing-editor label.listing-photo-upload {
    padding: 20px 14px;
    gap: 12px;
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .listing-photo-upload > svg {
    width: 22px;
    flex-shrink: 0;
  }
  .listing-photo-upload > span {
    flex: 1;
  }
  .listing-photo-upload strong {
    font-size: 15px;
  }
  #dialog .listing-photo-upload small {
    font-size: 12px;
  }
  .listing-photo-upload .listing-upload-cta {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    margin: 4px 0 0;
  }
  .listing-photo-upload .listing-upload-icon {
    width: 40px;
    height: 40px;
  }
  .listing-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #dialog .listing-photo-tools .button {
    font-size: 10px;
    padding: 4px;
    min-width: 24px;
  }
  .listing-photo-tools > b {
    font-size: 10px;
  }
  .listing-photo-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .listing-photo-tools > :first-child {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
  }
  #dialog .listing-photo-tools .button {
    font-size: 13px;
    min-height: 42px;
    justify-content: center;
  }
  .listing-photo-tools > b {
    font-size: 13px;
    padding: 10px 0;
  }
  #dialog .listing-photo-remove {
    width: 40px;
    height: 40px;
    padding: 10px;
  }
  .listing-review-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .listing-review-photo {
    height: 165px;
  }
  .listing-review-lines > div {
    grid-template-columns: 1fr auto;
    gap: 7px;
    padding: 13px 0;
  }
  .listing-review-lines span {
    grid-column: 1;
  }
  .listing-review-lines strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 13px;
  }
  .listing-review-lines .button {
    grid-column: 2;
    grid-row: 1/3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .listing-editor * {
    scroll-behavior: auto;
  }
}
