/* APP property editor only. Preserve global navigation and DEV markup. */
.pm-enabled #myPropertiesView > :not(#appPropertyManager) {
  display: none !important;
}
.pm {
  color: var(--sg-theme-text,#101b32);
  max-width: 1320px;
  margin: auto;
  padding: 4px 0 24px;
}
.pm * {
  box-sizing: border-box;
}
.pm h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0;
}
.pm h3 {
  font-size: 21px;
  margin: 0 0 14px;
}
.pm h4 {
  font-size: 18px;
  margin: 0 0 8px;
}
.pm p {
  line-height: 1.55;
}
.pm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-between {
  justify-content: space-between;
}
.pm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--sg-theme-border,#c4d4df);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--sg-theme-surface,#fff);
  color: var(--sg-theme-text,#13253d);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
}
.pm-button:hover {
  background: var(--sg-theme-surface,#effafa);
}
.pm-button:focus-visible,
.pm input:focus-visible,
.pm select:focus-visible,
.pm textarea:focus-visible {
  outline: 3px solid #00aaa9;
  outline-offset: 3px;
}
.pm-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pm-primary {
  background: #008d8c;
  color: #fff;
  border-color: #008d8c;
}
.pm-primary:hover {
  background: #007774;
}
.pm-badge {
  display: inline-block;
  align-self: flex-start;
  border-radius: 12px;
  background: #d8f7f4;
  color: #006b65;
  font-size: 13px;
  padding: 5px 11px;
}
.pm-muted,
.pm-reference {
  color: var(--sg-theme-muted,#5c6d86);
  font-size: 13px;
}
.pm-reference {
  display: block;
  overflow-wrap: anywhere;
  margin: 10px 0;
}
.pm-demo {
  padding: 12px;
  border: 1px solid #e6be67;
  background: #fff8e5;
  border-radius: 10px;
}
.pm-status {
  min-height: 24px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.pm-status[role="alert"] {
  padding: 12px;
  background: var(--sg-theme-surface,#fff0f1);
  color: #a12235;
  border-radius: 8px;
}
.pm-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  min-width: 0;
}
.pm-field > input,
.pm-field > textarea,
.pm-field > select,
.pm-file-controls > input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--sg-theme-border,#c5d6e1);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--sg-theme-surface,#fff);
  color: var(--sg-theme-text,#15243b);
  font: inherit;
}
.pm-field textarea {
  resize: vertical;
  min-height: 94px;
}
.pm-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.pm-check input {
  width: 20px;
  height: 20px;
  accent-color: #009d97;
}
.pm-platforms {
  container-type: inline-size;
  container-name: property-platforms;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--sg-theme-border,#d9e5ec);
  border-radius: 12px;
  background: var(--sg-theme-surface,#f8fbfc);
}
.pm-platforms legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
}
.pm-platforms > .pm-muted {
  margin: 0 0 12px;
  line-height: 1.6;
}
.pm-platform-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pm-platform-option {
  box-sizing: border-box;
  margin: 0;
  padding: 9px 12px;
  min-height: 44px;
  border: 1px solid var(--sg-theme-border,#d9e5ec);
  border-radius: 8px;
  background: var(--sg-theme-surface,#fff);
  font-size: 14px;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pm-platform-option:has(input:checked) {
  border-color: #72c9ce;
  background: var(--sg-theme-surface,#effafa);
}
.pm-platform-option:has(input:disabled) {
  cursor: default;
}
.pm-platform-more {
  margin-top: 12px;
}
.pm-platform-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: #386f80;
  font-size: 13px;
  font-weight: 600;
}
.pm-platform-more summary::before {
  content: "▸";
}
.pm-platform-more[open] summary::before {
  content: "▾";
}
.pm-platform-catalog-status {
  margin: 12px 0 0;
}
@container property-platforms (max-width: 470px) {
  .pm-platform-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pm-platform-options:has(.pm-platform-option:last-child:nth-child(3)) > .pm-platform-option:last-child {
    grid-column: 1/-1;
  }
}
@container property-platforms (max-width: 320px) {
  .pm-platform-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pm-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pm-detail-head > .pm-button {
  flex-basis: 100%;
  justify-content: flex-start;
  max-width: max-content;
  border: 0;
  background: none;
  padding-left: 0;
  min-height: 36px;
}
.pm-avatar {
  height: 72px;
  width: 72px;
  border-radius: 16px;
  background: #d9f7f5;
  color: #008681;
  display: grid;
  place-items: center;
  font-size: 42px;
  flex-shrink: 0;
  overflow: hidden;
}
.pm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--sg-theme-border,#d8e1eb);
  background: var(--sg-theme-surface,#fff);
  border-radius: 14px;
  margin: 20px 0;
  overflow: auto;
}
.pm-tabs .pm-button {
  border: 0;
  border-radius: 0;
  flex: 1;
  white-space: nowrap;
  min-height: 58px;
  position: relative;
}
.pm-tabs [aria-selected="true"] {
  background: var(--sg-theme-surface,#e3f8f5);
  color: #007a72;
  font-weight: 700;
}
.pm-tabs [aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #00b5a7;
}
.pm-panel {
  min-width: 0;
}
.pm-form {
  display: grid;
  gap: 16px;
}
.pm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.pm-full {
  grid-column: 1/-1;
}
.pm-panel > .pm-form {
  background: var(--sg-theme-surface,#fff);
  padding: 24px;
  border: 1px solid var(--sg-theme-border,#d9e2eb);
  border-radius: 16px;
}
.pm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--sg-theme-border,#e2e8ee);
  padding-top: 16px;
  margin-top: 10px;
}
.pm-actions > [data-pm-action="archive"] {
  margin-right: auto;
}
.pm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
  gap: 20px;
  margin-top: 20px;
}
.pm-property-card,
.pm-file-card {
  min-width: 0;
  border: 1px solid var(--sg-theme-border,#d9e2eb);
  border-radius: 16px;
  padding: 16px;
  background: var(--sg-theme-surface,#fff);
  overflow-wrap: anywhere;
}
.pm-property-card h3 {
  margin-top: 16px;
}
.pm-cover {
  height: 170px;
  border-radius: 10px;
  background: var(--sg-theme-surface,#e6f5f6);
  display: grid;
  place-items: center;
  font-size: 64px;
  color: #008c88;
  overflow: hidden;
}
.pm-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-property-card > .pm-row {
  margin-top: 16px;
}
.pm-empty {
  padding: 30px;
  border: 1px dashed var(--sg-theme-border,#c6d6de);
  border-radius: 12px;
  background: var(--sg-theme-surface,#fff);
  color: var(--sg-theme-muted,#5c6d86);
}
.pm-amenity {
  background: var(--sg-theme-surface,#f7fafc);
  border: 1px solid var(--sg-theme-border,#e2e9ee);
  border-radius: 12px;
  padding: 14px;
}
.pm-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 20px;
}
.pm-access-cards,
.pm-preview {
  border: 1px solid var(--sg-theme-border,#d9e2eb);
  border-radius: 18px;
  padding: 22px;
  background: var(--sg-theme-surface,#fff);
  min-width: 0;
}
.pm-access-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--sg-theme-border,#d9e2eb);
  padding: 18px;
  border-radius: 14px;
  margin-top: 14px;
  box-shadow: 0 2px 5px #1422380b;
  min-width: 0;
}
.pm-access-icon {
  display: grid;
  place-items: center;
  width: 76px;
  min-height: 100px;
  font-size: 48px;
  background: var(--sg-theme-surface,#eaf8f7);
  border-radius: 10px;
  color: #008c88;
  flex-shrink: 0;
}
.pm-access-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pm-access-copy code {
  background: var(--sg-theme-surface,#f1f3f7);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 3px;
}
.pm-access-card > .pm-row {
  flex-direction: column;
  align-items: stretch;
}
.pm-preview {
  background: linear-gradient(var(--sg-theme-surface,#fff), var(--sg-theme-surface,#f5fbfb));
}
.pm-preview-content {
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.pm-preview-content > p {
  background: var(--sg-theme-surface,#eaf8f8);
  border: 1px solid var(--sg-theme-border,#d3e7e8);
  padding: 16px;
  border-radius: 10px;
}
.pm-preview-content small {
  display: block;
  margin-top: 8px;
  color: var(--sg-theme-muted,#61728b);
}
.pm-secret {
  background: var(--sg-theme-surface,#fff8e7);
  border: 1px solid #ead5a1;
  padding: 10px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.pm-secret button {
  min-height: 44px;
  margin-left: 8px;
}
.pm-file-controls {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.pm-file-controls > * {
  flex: 1;
  min-width: min(100%, 220px);
}
.pm-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  margin-top: 20px;
}
.pm-file-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.pm-file-card .pm-row {
  margin-top: 12px;
}
.pm-upload-progress {
  display: grid;
  gap: 10px;
}
.pm-upload-progress p {
  overflow-wrap: anywhere;
}
.pm-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--sg-theme-border,#c2d5dd);
  border-radius: 16px;
  padding: 24px;
  color: var(--sg-theme-text,#142238);
}
.pm-dialog::backdrop {
  background: #08132980;
}
.pm-dialog .pm-field input,
.pm-dialog .pm-field select,
.pm-dialog .pm-field textarea {
  font-size: 16px;
}
.pm-dialog .pm-field {
  display: grid;
  gap: 6px;
}
.pm-dialog input,
.pm-dialog select,
.pm-dialog textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--sg-theme-border,#c5d6e1);
  border-radius: 8px;
}
.pm-dialog .pm-check input {
  width: 20px;
  min-height: 20px;
}
.pm-dialog .pm-form {
  display: grid;
  gap: 14px;
}
.pm-dialog .pm-button {
  min-height: 44px;
}
@media (max-width: 1100px) {
  .pm-access-layout {
    grid-template-columns: 1fr;
  }
  .pm-access-card > .pm-row {
    flex-direction: row;
  }
  .pm-access-card {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .pm {
    padding-bottom: 24px;
  }
  .pm h2 {
    font-size: 24px;
  }
  .pm h3 {
    font-size: 20px;
  }
  .pm-detail-head {
    gap: 12px;
  }
  .pm-avatar {
    width: 56px;
    height: 56px;
  }
  .pm-detail-head h2 {
    flex: 1;
    min-width: 150px;
    overflow-wrap: anywhere;
  }
  .pm-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pm-full {
    grid-column: auto;
  }
  .pm-panel > .pm-form {
    padding: 16px;
  }
  .pm-field input,
  .pm-field textarea,
  .pm-field select {
    font-size: 16px;
  }
  .pm-tabs {
    margin: 16px 0;
    max-width: 100%;
  }
  .pm-tabs .pm-button {
    font-size: 14px;
    padding: 10px 14px;
    flex: none;
    min-height: 48px;
  }
  .pm-access-cards,
  .pm-preview {
    padding: 16px;
  }
  .pm-access-card {
    gap: 12px;
    padding: 14px;
  }
  .pm-access-icon {
    width: 44px;
    min-height: 64px;
    font-size: 30px;
  }
  .pm-access-card > .pm-row {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .pm-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: var(--sg-theme-surface,#fff);
    padding: 12px 0;
    gap: 8px;
  }
  .pm-actions .pm-button {
    flex: 1;
  }
  .pm-property-card .pm-row .pm-button {
    flex: 1;
  }
  .pm-status {
    font-size: 14px;
  }
  .pm-reference {
    font-size: 11px;
  }
  .pm-dialog {
    padding: 18px;
  }
  .pm-access-layout {
    gap: 16px;
  }
}
/* Keep primary actions clear of the existing fixed Genie launcher. */
.pm-actions {
  padding-right: 88px;
}

.pm-access-icon img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
}
.pm-instruction-photo {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-top: 12px;
  border-radius: 8px;
}
.pm-modal-status {
  color: #a12235;
  background: var(--sg-theme-surface,#fff0f1);
  padding: 12px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.pm-danger {
  color: #a12235;
  border-color: #c77984;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pm-danger-zone {
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--sg-theme-border,#e2e8ee);
}
.pm-lifecycle {
  margin: 16px 0;
  padding: 14px;
  background: var(--sg-theme-surface,#fff7e9);
  border: 1px solid #e8c890;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.pm-lifecycle p {
  margin: 0 0 12px;
}
.pm-lifecycle p:last-child {
  margin-bottom: 0;
}
.pm-delete-dialog,
.pm-delete-dialog * {
  box-sizing: border-box;
}
.pm-delete-dialog h3,
.pm-delete-warning,
.pm-delete-name {
  overflow-wrap: anywhere;
}
.pm-delete-warning {
  line-height: 1.5;
}
.pm-delete-name {
  padding: 12px;
  background: var(--sg-theme-surface,#f5f7fa);
  border-radius: 8px;
  font-weight: 700;
  white-space: pre-wrap;
}
.pm-delete-dialog .pm-muted {
  line-height: 1.5;
}
.pm-delete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.pm-delete-actions .pm-button {
  min-width: 100px;
  flex: 1 1 180px;
}
.pm-delete-dialog [aria-busy="true"] {
  cursor: progress;
}
@media (max-width: 760px) {
  .pm-access-icon img {
    height: 64px;
  }
}
