/* Owner's listings page and the status pill shared with the classified owner panel. */
.ml-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.ml-row { display: flex; align-items: flex-start; gap: 14px 18px; background: #fff; border: 1px solid #e7e5df; border-radius: 16px; padding: 14px 18px; }
.ml-main { flex: 1; min-width: 0; }
.ml-thumb { position: relative; flex: none; width: 132px; height: 99px; border-radius: 10px; overflow: hidden; background: #eceae3; display: grid; place-items: center; text-align: center; font-size: 11.5px; font-weight: 600; color: #64706c; }
.ml-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-thumb a { display: block; width: 100%; height: 100%; }
.ml-thumb--rejected { color: #b3261e; background: #fdecea; }
.ml-thumb--processing { color: #91641d; background: #fff1d5; }
.ml-thumb-count { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-style: normal; font-size: 11px; border-radius: 6px; padding: 1px 7px; font-weight: 700; }
.ml-facts { margin: 3px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: #4a524e; }
.ml-facts span + span::before { content: "·"; margin-right: 12px; color: #aab2ae; }
.ml-facts .ml-price + span::before { content: none; margin: 0; }
.ml-dates { margin: 4px 0 0; font-size: 12px; color: #64748b; }
.ml-stats { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: #4a524e; }
.ml-stats b { color: #1d2a26; }
.ml-why { margin: 8px 0 0; padding: 8px 11px; border-radius: 10px; background: #fdf1ec; border: 1px solid #f0c3b0; color: #7a2e12; font-size: 13px; }
.ml-meta { margin: 0 0 2px; font-size: 12px; color: #64748b; }
.ml-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.ml-title a { color: #153e35; text-decoration: none; }
.ml-title a:hover { text-decoration: underline; }
.ml-price { margin: 2px 0 0; font-weight: 700; color: #145447; }
.ml-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ml-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.ml-pills { display: flex; flex-wrap: nowrap; gap: 5px; margin: 0 0 5px; }
.ml-pills .ml-pill { white-space: nowrap; }
.ml-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid #e5e7e3; border-radius: 9px; background: #fff; color: #103e36; cursor: pointer; list-style: none; }
.ml-icon:hover { background: #f3f6f4; color: #103e36; }
.ml-icon:focus-visible { outline: 2px solid #153e35; outline-offset: 2px; }
.ml-more { position: relative; }
.ml-more summary::-webkit-details-marker { display: none; }
.ml-more-menu { position: absolute; right: 0; top: 40px; z-index: 5; width: 230px; padding: 6px; background: #fff; border: 1px solid #e5e7e3; border-radius: 12px; box-shadow: 0 10px 26px rgba(16, 62, 54, .16); }
.ml-more-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #103e36; font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.ml-more-item:hover { background: #f3f6f4; }
.ml-more-item[data-confirm-danger] { color: #b3261e; }
.ml-stat-main { font-weight: 700; }
.ml-stats span { display: inline-flex; align-items: center; gap: 4px; }
.ml-row:target { outline: 2px solid #153e35; outline-offset: 2px; }
/* A card reached by its anchor (back from the statistics) stops below the sticky header:
   --mk-header is the measured header height; 113px is the phone header when it is not set. */
.ml-row, .pw-card { scroll-margin-top: calc(var(--mk-header, 113px) + 16px); }
.ml-action { margin: 0; }
.ml-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.ml-pill--ok { background: #dff0e8; color: #0b5745; }
.ml-pill--warn { background: #fff6df; color: #6b4b06; border-color: #ecd9a8; }
.ml-pill--muted { background: #efeae0; color: #4a524e; }
.ml-pill--danger { background: #fdf1ec; color: #7a2e12; border-color: #f0c3b0; }
@media (max-width: 720px) {
  .ml-row { flex-wrap: wrap; }
  .ml-thumb { width: 100%; height: 130px; }
  .ml-side { width: 100%; align-items: flex-start; }
  .ml-actions { justify-content: flex-start; }
}
.ml-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; border-bottom: 1px solid #d5ddd9; }
.ml-spark i { display: block; width: 5px; background: #8fc3ae; border-radius: 2px 2px 0 0; }
.ml-expiry { margin-top: 4px; font-size: 12px; color: #626d65; }
.ml-expiry.is-warn { color: #8a5a00; font-weight: 700; }

/* Publication windows page (read-only): the same cards as the owner list. */
.pw-head-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pw-times { margin: 10px 0 0; display: grid; gap: 6px; }
.pw-times div { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
.pw-times dt { color: #4a524e; font-weight: 600; }
.pw-times dd { margin: 0; color: #1d2a26; }
@media (max-width: 720px) {
  .pw-times div { display: block; }
  .pw-head-actions { width: 100%; }
}

.pw-timer { display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.pw-timer--green { background: #e6f4ec; color: #14532d; }
.pw-timer--yellow { background: #fff4d6; color: #6b4a00; }
.pw-timer--red { background: #fde8e6; color: #8a1f17; }
.pw-timer--ready { background: #d9f0e3; color: #0f4d2b; font-weight: 600; }

/* Publication windows: numbered showcases in a grid. */
.pw-zone { margin: -14px 0 12px; }
.pw-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pw-card { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px 12px; min-height: 172px; align-content: start; padding: 12px; background: #fff; border: 1.5px solid #c9d6cf; border-radius: 18px; }
.pw-card:target { box-shadow: 0 0 0 3px rgba(21, 62, 53, .22); }
.pw-card--empty { grid-template-columns: minmax(0, 1fr); align-content: center; }
.pw-card--inconsistent { grid-template-columns: minmax(0, 1fr); }
.pw-card--buy { display: flex; padding: 0; background: transparent; border: 1.5px dashed #8fa79c; }
.pw-num { position: absolute; left: -1.5px; top: -1.5px; z-index: 1; min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; background: #153e35; color: #fff; font-size: 16px; font-weight: 800; border-radius: 18px 0 12px 0; }
/* One compact thumbnail that keeps the proportions of the photo, and the window under it. */
.pw-side { min-width: 0; }
.pw-photo { border-radius: 10px; overflow: hidden; background: #e4ebe6; display: grid; place-items: center; text-align: center; font-size: 11px; color: #55605c; }
.pw-photo span { padding: 28px 6px; }
.pw-photo img { display: block; max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.pw-num-line { margin: 6px 0 0; font-size: 11.5px; line-height: 1.3; color: #55605c; }
.pw-num-side { color: #103e36; font-weight: 800; }
.pw-placed { margin: 3px 0 0; font-size: 11.5px; line-height: 1.3; color: #64706c; }
.pw-placed b { display: block; color: #1d2a26; font-weight: 600; }
.pw-info { min-width: 0; }
/* Labels wrap inside a narrow card instead of running past its edge (joint check, 375 px). */
.pw-info .ml-pills { flex-wrap: wrap; }
.pw-info .ml-dates b { color: #1d2a26; font-weight: 600; }
.pw-info--wide { grid-column: 1 / -1; padding-left: 28px; }
.pw-stats { margin-top: 6px; }
.pw-stats span { display: inline-flex; align-items: center; gap: 4px; }
.pw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pw-acts--center { justify-content: center; }
.pw-update { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.pw-update small { font-size: 12px; color: #64706c; }
.pw-free { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 148px; }
.pw-buy { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 172px; color: #103e36; font-weight: 800; text-decoration: none; border-radius: 16px; }
.pw-buy:hover { background: #f3f6f4; text-decoration: none; color: #103e36; }
.pw-plus { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #153e35; color: #fff; font-size: 27px; font-weight: 400; line-height: 1; }
.pw-details { grid-column: 1 / -1; font-size: 12.5px; color: #55605c; }
.pw-details summary { cursor: pointer; font-weight: 600; }
.pw-dialog-page { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid #e5e7e3; border-radius: 18px; padding: 18px 20px; }
/* The dialog opens in the shared modal, outside the cabinet page: it carries its own colours. */
.pw-dialog { --ms-line: #e5e7e3; --ms-muted: #64706c; --ms-dark: #153e35; --ms-gray-bg: #eef0ee; --ms-gray: #55605c;
  display: grid; gap: 12px; color: #1d2a26; font-size: 14px; }
.pw-dialog h2 { margin: 0; font-size: 19px; color: #103e36; }
.pw-choice { margin: 0; padding: 0; border: 0; }
.pw-choice legend { margin-bottom: 5px; padding: 0; font-size: 12.5px; font-weight: 700; color: #55605c; }
.pw-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pw-options--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pw-option { display: flex; flex-direction: column; align-items: center; padding: 9px 8px; border: 1.5px solid #e5e7e3; border-radius: 12px; text-align: center; cursor: pointer; }
.pw-option input { position: absolute; opacity: 0; }
.pw-option:focus-within { outline: 2px solid #153e35; outline-offset: 2px; }
.pw-option b { color: #103e36; }
.pw-option small { font-size: 12px; color: #64706c; }
.pw-option.is-on { border-color: #075b48; background: #e4efe9; }
.pw-option.is-off { opacity: .5; cursor: not-allowed; }
.pw-summary { display: grid; gap: 4px; margin: 0; padding: 9px 12px; border-radius: 12px; background: #eef2ef; }
.pw-summary div { display: flex; justify-content: space-between; gap: 12px; }
.pw-summary dt { color: #55605c; }
.pw-summary dd { margin: 0; font-weight: 700; color: #103e36; }
.pw-note { margin: 0; padding: 8px 10px; border: 1px solid #ecd9a8; border-radius: 10px; background: #fff6df; color: #5c4a12; font-size: 12.5px; }
.pw-dialog-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pw-dialog-acts .ms-btn[disabled] { cursor: not-allowed; }
@media (max-width: 899px) {
  .pw-grid { grid-template-columns: minmax(0, 1fr); }
}
