.property-shell .content { max-width: 1120px; margin-inline: auto; }
.property-shell .top-title { display: block; overflow-wrap: anywhere; }
.property-shell .top-title strong { display: block; }
.property-head { flex-wrap: wrap; gap: 12px; overflow-wrap: anywhere; }
.property-head h1 { margin-block: 0; }
.property-list .field { margin: 0; }
.property-fields, .property-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.property-full, .property-edit { grid-column: 1 / -1; }
.property-create { max-width: 780px; }
.property-form { display: grid; gap: 12px; margin-top: 12px; }
.property-form .field { margin: 0; }
.property-form .form-actions { margin-top: 0; }
.property-form-error:not([hidden]) { color: #a12020; margin: 0; }
.property-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; padding-block: 15px; border-bottom: 1px solid #dce5ee; }
.property-row[hidden], .property-table tr[hidden] { display: none; }
.property-row p, .property-summary p, .property-history p { margin: 4px 0 0; }
.property-title { font-weight: 700; color: #12517a; text-decoration: underline; text-underline-offset: 3px; }
.property-row > div, .property-note { overflow-wrap: anywhere; }
.property-note { white-space: pre-wrap; }
.property-status { white-space: nowrap; flex-shrink: 0; }
.property-status.positive { background: #e1f5e9; color: #18583c; }
.property-status.negative { background: #fae7eb; color: #882d44; }
.property-status.callback { background: #fff0d5; color: #724711; }
.property-status.no_answer { background: #edf1f6; color: #42536a; }
.property-summary { display: grid; gap: 14px; }
.property-links { display: flex; gap: 8px; flex-wrap: wrap; }
.property-links .btn { white-space: normal; overflow-wrap: anywhere; }
.property-history { padding-inline-start: 22px; margin-bottom: 0; }
.property-history li + li { margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce5ee; }
.property-edit summary { cursor: pointer; font-weight: 700; padding-block: 6px; }
.property-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.property-stage { display: inline-block; white-space: normal; background: #e9f1f8; color: #23465d; }
.property-stage.for_sale { background: #fff0d5; color: #724711; }
.property-stage.contracted, .property-stage.deal_success { background: #e1f5e9; color: #18583c; }
.property-stage.closed_unsuccessful { background: #eef0f3; color: #42536a; }
.property-price { font-size: 1.25rem; }
.property-upload { min-width: 0; border: 1px solid #d5e0e9; border-radius: 8px; padding: 12px; }
.property-upload legend { font-weight: 700; padding-inline: 5px; }
.property-upload input[type="file"], .property-form input[type="file"] { width: 100%; }
.property-upload .subtle, .property-form > .subtle { margin: 0; font-size: .88rem; }
.property-upload .subtle { margin-top: 8px; }
.property-gallery, .property-attachments { list-style: none; padding: 0; }
.property-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 10px; margin: 0 0 12px; }
.property-gallery li { min-width: 0; max-width: 360px; }
.property-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: #edf2f7; }
.property-gallery label { display: flex; align-items: center; gap: 5px; padding-block: 4px; font-size: .85rem; }
.property-gallery input[type="checkbox"] { width: auto; margin: 0; }
.property-attachments li { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding-block: 7px; overflow-wrap: anywhere; }
.property-table-scroll { overflow-x: auto; margin-top: 12px; }
.property-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.property-table-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.property-table th, .property-table td { text-align: left; vertical-align: middle; padding: 10px; border-bottom: 1px solid #dce5ee; overflow-wrap: anywhere; }
.property-table th { background: #edf4fa; color: #23465d; }
.property-table td:first-child { width: 36%; }
.property-table-listing { display: flex; gap: 10px; align-items: center; }
.property-thumb { width: 56px; height: 45px; flex: 0 0 auto; border-radius: 6px; object-fit: cover; }
.property-report-filter { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.property-report-filter .field { margin: 0; }
.property-report-totals { display: flex; flex-wrap: wrap; gap: 10px; }
.property-report-totals div { flex: 1 1 150px; background: #edf4fa; padding: 10px; border-radius: 8px; }
.property-report-totals dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; }
.property-report-success { color: #18583c; margin-top: 4px; font-size: .85rem; }
.property-application-page { padding: clamp(14px, 5vw, 48px); }
.property-application-card { margin-inline: auto; max-width: 570px; }
.property-application-card h1 { font-size: clamp(1.55rem, 5vw, 2.15rem); }
.property-application-card p { line-height: 1.55; }
.property-application-back { display: inline-block; margin-top: 16px; }
.property-form[hidden] { display: none; }
.property-application-result { display: grid; gap: 8px; margin-top: 12px; }
.property-application-result:empty { display: none; }
.property-application-row .form-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; }
.property-preview-fields { min-width: 0; border: 0; padding: 0; }
@media (max-width: 640px) {
  .property-shell .top-actions { align-items: flex-end; flex-direction: column; gap: 5px; }
  .property-user { font-size: .8rem; text-align: right; }
}
@media (max-width: 840px) {
  .property-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .property-fields { grid-template-columns: minmax(0, 1fr); }
  .property-row { flex-wrap: wrap; }
}
