/* Website > Listings. Uses the app's existing tokens (styles.css :root). */
.ls-actions { display: flex; gap: 10px; align-items: center; }
.ls-state { padding: 40px 24px; text-align: center; color: var(--ink-mute); }
.ls-state h2 { font-family: var(--font-display); color: var(--ink); margin: 0 0 8px; font-size: 18px; }
.ls-table-wrap { margin-top: 18px; }
.ls-table tbody tr { cursor: default; }
.ls-table tbody tr.ls-note-row:hover { background: transparent; }
.ls-name { font-weight: 600; color: var(--ink); }
.ls-sub { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.ls-link { color: var(--blue); text-decoration: none; font-family: var(--font-mono); font-size: 12px; }
.ls-link:hover { text-decoration: underline; }
.ls-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; }
.ls-badge-notion { background: #EAF2FD; color: #0B4F94; border-color: #C9DDF5; }
.ls-badge-live { background: #DEF5E6; color: #146C43; border-color: #A7DFBB; }
.ls-badge-warn { background: #FFF4DB; color: #8A5A00; border-color: #F2D894; }
.ls-badge-bad { background: #FBE5E4; color: #A12622; border-color: #F0B8B6; }
.ls-badge-muted { background: var(--bg-inset); color: var(--ink-mute); border-color: var(--panel-border); }
.ls-note-row td { padding: 0 24px 12px; border-bottom: 1px solid var(--panel-border-soft); }
.ls-notes { margin: 0; padding: 8px 12px 8px 28px; background: #FFF9EA; border: 1px solid #F2E2B0; border-radius: var(--radius-sm); font-size: 12.5px; color: #6B4E00; }
.ls-banner { margin: 0 24px 16px; padding: 10px 14px; background: #FFF9EA; border: 1px solid #F2E2B0; border-radius: var(--radius-sm); font-size: 12.5px; color: #6B4E00; }
.ls-add-panel { margin: 0 24px 16px; padding: 14px 16px; background: var(--glass-card); box-shadow: var(--glass-highlight); border: 1px dashed rgba(16, 40, 68, 0.22); border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-soft); }
.ls-add-panel p { margin: 6px 0 0; }
.ls-foot { padding: 14px 24px; font-size: 11.5px; color: var(--ink-faint); }
.ls-table td .ls-sub { white-space: nowrap; }

/* ---- drafts, picker, editor, preview ---- */
.ls-badge-draft { background: #F1ECFB; color: #5B3FA8; border-color: #D9CCF2; }
.ls-link-strong { color: var(--blue); font-weight: 600; text-decoration: none; }
.ls-link-strong:hover { text-decoration: underline; }
.ls-warn-text { color: #8A5A00; }
.ls-center { justify-content: center; margin-top: 12px; }
.ls-back { display: inline-block; font-size: 12px; color: var(--ink-mute); text-decoration: none; margin-bottom: 6px; }
.ls-back:hover { color: var(--blue); }
.ls-pad { padding: 0 24px 12px; }
.ls-input { width: 100%; font: inherit; font-size: 13.5px; padding: 9px 11px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.ls-input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.ls-input:disabled { background: var(--bg-inset); color: var(--ink-soft); }
textarea.ls-input { resize: vertical; line-height: 1.5; }
.ls-confirm-row td { padding: 0 24px 14px; }
.ls-confirm { background: #FFF9EA; border: 1px solid #F2E2B0; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: #6B4E00; }
.ls-confirm .ls-actions { margin-top: 10px; }
.ls-banner-bad { background: #FBE5E4; border-color: #F0B8B6; color: #8E1F1B; }
.ls-banner-ok { background: #DEF5E6; border-color: #A7DFBB; color: #146C43; }
.ls-banner .btn, .ls-banner-bad .btn { margin: 8px 8px 0 0; }
.ls-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--panel-border); margin-bottom: 16px; }
.ls-tab { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink-mute); text-decoration: none; border-bottom: 2px solid transparent; }
.ls-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.ls-editor { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; padding: 0 24px 24px; }
.ls-field { margin-bottom: 16px; }
.ls-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.ls-help { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.ls-ferr { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; color: #A12622; }
.ls-ferr:empty { display: none; }
.ls-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ls-hidden { display: none; }
.ls-check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.ls-card { background: var(--glass-card); border: 1px solid var(--glass-border); box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-edge), 0 4px 14px rgba(16, 40, 68, 0.06); border-radius: var(--radius-card); padding: 14px 16px; margin-bottom: 14px; font-size: 12.5px; color: var(--ink-soft); }
.ls-card h3 { font-family: var(--font-display); font-size: 14px; margin: 0 0 8px; color: var(--ink); }
.ls-ready { font-weight: 700; margin-bottom: 8px; }
.ls-ready.ok { color: #146C43; } .ls-ready.no { color: #8A5A00; }
.ls-check { list-style: none; margin: 0 0 8px; padding: 0; }
.ls-check li.ok { color: #146C43; } .ls-check li.no { color: var(--ink-mute); }
.ls-errs { color: #A12622; margin-top: 6px; } .ls-blocks { color: #6B4E00; margin-top: 6px; }
.ls-errs ul, .ls-blocks ul { margin: 4px 0 0; padding-left: 18px; }
.ls-ver { list-style: none; margin: 0 0 10px; padding: 0; }
.ls-ver-item { padding: 8px 0; border-bottom: 1px solid var(--panel-border-soft); }
.ls-ver-item:last-child { border-bottom: none; }
.ls-note-add { margin-top: 8px; display: grid; gap: 8px; }
.ls-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; }
.ls-facts dt { color: var(--ink-faint); } .ls-facts dd { margin: 0; color: var(--ink); word-break: break-word; }
.ls-hist { list-style: none; margin: 0; padding: 0; } .ls-hist li { padding: 5px 0; border-bottom: 1px solid var(--panel-border-soft); }
.ls-pv-grid { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.ls-pv-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin: 0 0 8px; }
.ls-pv-card, .ls-pv-detail { background: var(--glass-panel-strong); border: 1px solid var(--glass-border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-edge), var(--shadow-soft); }
.ls-pv-detail { padding: 0 0 18px; } .ls-pv-detail > :not(.ls-pv-photo) { margin-left: 20px; margin-right: 20px; }
.ls-pv-photo { height: 150px; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: var(--on-navy-mute); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ls-pv-photo-lg { height: 220px; margin-bottom: 16px; }
.ls-pv-body { padding: 14px 16px 16px; } .ls-pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ls-pv-body h4, .ls-pv-detail h3 { font-family: var(--font-display); margin: 0 0 4px; color: var(--ink); }
.ls-pv-addr { color: var(--ink-mute); font-size: 13px; } .ls-pv-price { color: var(--navy); font-weight: 700; margin: 6px 0; }
.ls-pv-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.ls-pv-detail p, .ls-pv-body p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---- photographs ---- */
.ls-photos { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--panel-border); }
.ls-ph-h { font-family: var(--font-display); font-size: 15px; margin: 0 0 4px; color: var(--ink); }
.ls-photos .ls-banner { margin: 10px 0; }
.ls-drop { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px; margin: 12px 0 16px; border: 2px dashed var(--panel-border); border-radius: var(--radius-md); background: var(--bg-inset); color: var(--ink-soft); cursor: pointer; font-size: 12.5px; }
.ls-drop strong { color: var(--ink); font-size: 14px; }
.ls-drop:hover, .ls-drop:focus, .ls-drop.over { border-color: var(--blue); background: #EAF2FD; outline: none; }
.ls-ph-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ls-ph { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--glass-border); border-radius: var(--radius-card); background: var(--glass-panel-strong); box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-edge); }
.ls-ph[draggable="true"] { cursor: grab; }
.ls-ph-cover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.ls-ph-drag { opacity: .45; } .ls-ph-over { outline: 2px dashed var(--blue); outline-offset: 2px; }
.ls-ph-img, .ls-pv-img { position: relative; background: var(--bg-inset); border-radius: var(--radius-sm); overflow: hidden; min-height: 110px; display: flex; align-items: center; justify-content: center; }
.ls-ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; user-select: none; -webkit-user-drag: none; }
.ls-ph-plan .ls-ph-img img, .ls-pv-plan img { object-fit: contain; background: #F4F4F2; }
.ls-ph-flag { position: absolute; top: 8px; left: 8px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ls-ph-flag-plan { background: #5B3FA8; }
.ls-ph-body { display: grid; gap: 8px; align-content: start; }
.ls-ph-row { align-items: flex-start; } .ls-ph-row input { margin-top: 2px; }
.ls-ph-review { color: var(--ink); }
.ls-ph-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ls-ph-confirm { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: #8E1F1B; }
.ls-ph-ok { font-size: 12px; font-weight: 700; color: #146C43; }
.ls-ph-issues { margin: 0; padding-left: 16px; list-style: disc; }
.ls-img-fail { opacity: .4; }
.ls-pv-gallery { margin-bottom: 14px; }
.ls-pv-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.ls-pv-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-inset); }
.ls-pv-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ls-pv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-pv-card .ls-pv-img { height: 190px; } .ls-pv-detail .ls-pv-photo-lg { height: auto; aspect-ratio: 16 / 10; }

.ls-ph-pos { position: absolute; bottom: 8px; left: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(0, 22, 43, .78); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ls-ph-queue-list { margin-bottom: 14px; }
.ls-ph-queue { border-style: dashed; background: var(--bg-inset); }
.ls-ph-queue .ls-ph-img img { opacity: .85; }
.ls-ph-failed { border-color: #F0B8B6; background: #FDF3F2; }
.ls-ph-qstate { font-size: 13px; font-weight: 600; color: var(--ink); }
.ls-ph-failed .ls-ph-qstate { color: #A12622; }
.ls-bar { height: 6px; border-radius: 999px; background: var(--panel-border); overflow: hidden; }
.ls-bar span { display: block; height: 100%; background: var(--blue); transition: width .15s linear; }
.ls-bar-ind span { animation: ls-ind 1.1s ease-in-out infinite; }
@keyframes ls-ind { 0% { opacity: .35; } 50% { opacity: 1; } 100% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ls-bar-ind span { animation: none; } .ls-bar span { transition: none; } }
.ls-review { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--glass-border); border-radius: var(--radius-card); background: var(--glass-card); box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-edge); font-size: 12.5px; color: var(--ink-soft); }
.ls-review.ok { background: #DEF5E6; border-color: #A7DFBB; color: #146C43; }
.ls-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 22, 43, .72); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.ls-modal:focus { outline: none; }
.ls-modal-card { background: var(--glass-panel-strong); border: 1px solid var(--glass-border); border-radius: var(--radius-shell); width: min(900px, 100%); padding: 18px 20px; box-shadow: var(--glass-highlight), var(--shadow-elevated); }
.ls-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ls-modal-head h3 { font-family: var(--font-display); margin: 0; font-size: 17px; color: var(--ink); }
.ls-rv-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 18px; }
.ls-rv-img { background: var(--bg-inset); border-radius: var(--radius-sm); overflow: hidden; min-height: 140px; display: flex; align-items: center; justify-content: center; }
.ls-rv-img img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; display: block; }
.ls-rv-cap { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.ls-modal-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 0 0; background: #fff; border-top: 1px solid var(--panel-border); }
.ls-modal-foot .ls-sub { margin-right: auto; }
@media (max-width: 640px) { .ls-ph { grid-template-columns: 1fr; } .ls-modal { padding: 0; } .ls-modal-card { border-radius: 0; min-height: 100%; } .ls-ph-actions .btn { min-height: 40px; } }
@media (max-width: 1100px) { .ls-editor, .ls-pv-grid { grid-template-columns: 1fr; } .ls-row { grid-template-columns: 1fr; } }

.ls-offscreen { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* History: collapsed by default, dark navy card. Contrast: --on-navy #E7EDF7 and --on-navy-mute #90A2BF on --navy #0A1E36 measure 14.3:1 and 6.5:1 (white 16.8:1), above WCAG AA 4.5:1. */
.ls-card-history { background: var(--navy); border-color: var(--navy-soft); color: var(--on-navy); padding: 0; overflow: hidden; }
.ls-card-history h3.ls-hist-h { margin: 0; color: var(--on-navy); }
.ls-hist-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: transparent; border: 0; color: #fff; font: inherit; font-family: var(--font-display); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.ls-hist-toggle:hover { background: var(--navy-soft); }
.ls-hist-toggle:focus-visible { outline: 2px solid #8FC2FF; outline-offset: -3px; }
.ls-hist-count { margin-left: auto; min-width: 22px; padding: 1px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--on-navy); font-family: var(--font-body); font-size: 11.5px; font-weight: 600; text-align: center; }
.ls-hist-chev { width: 8px; height: 8px; border-right: 2px solid var(--on-navy); border-bottom: 2px solid var(--on-navy); transform: rotate(45deg); transition: transform .15s ease; margin: -3px 2px 0 0; }
.ls-card-history.open .ls-hist-chev { transform: rotate(-135deg); margin-top: 3px; }
.ls-hist-panel { padding: 2px 16px 14px; border-top: 1px solid var(--navy-soft); color: var(--on-navy); }
.ls-hist-panel[hidden] { display: none; }
.ls-card-history .ls-hist li { border-bottom-color: rgba(231, 237, 247, .14); }
.ls-card-history .ls-hist li:last-child { border-bottom: 0; }
.ls-card-history .ls-sub { color: var(--on-navy-mute); }
.ls-card-history strong { color: #fff; }
.ls-ph-fallback { font-style: italic; }
@media (prefers-reduced-motion: reduce) { .ls-hist-chev { transition: none; } }

/* ---- Review & publish ---- */
.ls-review-host { display: grid; gap: 16px; }
.ls-rv-box { background: var(--glass-panel-strong); border: 1px solid var(--glass-border); border-radius: var(--radius-card); padding: 16px 18px; box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-edge); }
.ls-rv-box h3 { font-family: var(--font-display); font-size: 15px; margin: 0 0 6px; color: var(--ink); }
.ls-rv-title { font-family: var(--font-display); font-size: 17px; margin: 10px 0 2px; color: var(--ink); }
.ls-rv-check { background: var(--glass-card); border: 1px solid var(--glass-border); box-shadow: var(--glass-highlight), 0 0 0 1px var(--glass-edge); border-radius: var(--radius-card); padding: 12px 16px; margin: 0; }
.ls-rv-photos { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.ls-rv-ph { position: relative; aspect-ratio: 4 / 3; background: var(--bg-inset); border-radius: var(--radius-sm); overflow: hidden; }
.ls-rv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-tl-list { list-style: none; margin: 10px 0; padding: 0; }
.ls-tl { padding: 4px 0; font-size: 13px; color: var(--ink-soft); }
.ls-tl.wait, .ls-tl.skip { color: var(--ink-faint); }
.ls-tl.ok .ls-tl-dot { color: #146C43; } .ls-tl.bad { color: #A12622; } .ls-tl-dot { display: inline-block; width: 16px; font-weight: 700; }
.ls-job { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--panel-border-soft); }
.ls-checks { list-style: none; margin: 8px 0; padding: 0; font-size: 12.5px; } .ls-checks li { padding: 4px 0; } .ls-checks li.no strong { color: #A12622; } .ls-checks li.ok strong { color: #146C43; }
.ls-jobs-older { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }

/* Second step of publishing: an explicit confirmation before anything becomes public */
.ls-confirm { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--navy); border-radius: var(--radius-md); background: #fff; }
.ls-confirm p { margin: 0 0 10px; }
.ls-tech { margin: 0 24px 12px; font-size: 12px; color: var(--ink-mute); }
.ls-tech summary { cursor: pointer; }
.ls-statusrow { margin: 0 24px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ls-statusrow .ls-sub { margin: 0; }
.ls-statusrow .ls-banner { flex: 1 0 100%; margin: 4px 0 0; }
.ls-sold-confirm { display: block; margin: 8px 0 12px; font-size: 12.5px; color: var(--ink); }
.ls-statusrow .ls-input { width: auto; min-width: 180px; }
.ls-danger-box { border-color: #F0B8B6; }
.ls-danger-box h3 { color: #A12622; }
.ls-confirm-actions { margin-top: 12px; }
/* steps: where you are in Prepare, Preview and check, Publish */
.ls-steps { display: flex; gap: 0; margin: 0 24px 16px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--glass-card); }
.ls-step { flex: 1; padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-mute); text-decoration: none; border-right: 1px solid var(--panel-border); }
.ls-step:last-child { border-right: 0; }
.ls-step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-inset); color: var(--ink-soft); font-size: 12px; margin-right: 6px; }
.ls-step.active { background: #EAF3FD; color: var(--ink); }
.ls-step.active .ls-step-n { background: var(--blue); color: #fff; }
.ls-step.done .ls-step-n { background: #1F8A5B; color: #fff; }
.ls-step-footer { display: flex; gap: 10px; margin: 22px 0 8px; }
.ls-editor-single { display: block; }
/* friendly progress */
.ls-prog { list-style: none; margin: 10px 0; padding: 0; }
.ls-prog li { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: var(--ink-mute); font-size: 14px; }
.ls-prog-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--panel-border); font-size: 12px; font-weight: 700; }
.ls-prog-active { color: var(--ink); font-weight: 600; }
.ls-prog-active .ls-prog-dot { border-color: var(--blue); border-top-color: transparent; animation: ls-spin 1s linear infinite; }
.ls-prog-done { color: #146C43; }
.ls-prog-done .ls-prog-dot { background: #1F8A5B; border-color: #1F8A5B; color: #fff; }
.ls-prog-failed { color: #A12622; }
.ls-prog-failed .ls-prog-dot { background: #C0392B; border-color: #C0392B; color: #fff; }
@keyframes ls-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ls-prog-active .ls-prog-dot { animation: none; } }
.ls-changes { margin: 6px 0 14px; padding-left: 20px; }
.ls-tech-box { margin-top: 16px; }
.ls-tech-box > summary { cursor: pointer; color: var(--ink-mute); font-size: 13px; }
.ls-publish-action { margin-top: 14px; }
/* Add listing */
.ls-picks { display: flex; flex-direction: column; margin: 10px 0; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); overflow: hidden; }
.ls-pick { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--panel-border); cursor: pointer; background: var(--panel); }
.ls-pick:first-child { border-top: 0; }
.ls-pick.picked { background: #EAF3FD; }
.ls-pick.off { opacity: .6; cursor: not-allowed; }
.ls-pick-main { display: flex; flex-direction: column; gap: 2px; }
/* Manage */
.ls-manage-pills { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.ls-seg { display: inline-flex; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.ls-seg-b { border: 0; background: none; padding: 10px 18px; font-weight: 600; color: var(--ink-soft); border-right: 1px solid var(--panel-border); }
.ls-seg-b:last-child { border-right: 0; }
.ls-seg-b.on { background: var(--navy); color: #fff; }
.ls-seg-b:disabled { opacity: .5; cursor: not-allowed; }
.ls-status-confirm { margin-top: 12px; }
.ls-hist-plain { list-style: none; margin: 8px 0 0; padding: 0; }
.ls-hist-plain li { padding: 8px 0; border-top: 1px solid var(--panel-border); }
.ls-hist-plain li:first-child { border-top: 0; }
.ls-hist-plain li.bad strong { color: #A12622; }
.ls-step.off { opacity: .5; cursor: not-allowed; }
#view-listings a.btn { text-decoration: none; display: inline-block; }
/* Listings list */
.ls-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 24px 12px; }
.ls-chip { border: 1px solid var(--panel-border); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-soft); }
.ls-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ls-lrow-attn td:first-child { box-shadow: inset 3px 0 0 #C0392B; }
.ls-lrow-act { text-align: right; }

/* ---- Final polish: one heading system, header rhythm, and the two buttons for moving around --------------------------------------------------
   Headings reuse the existing body face (IBM Plex Sans, squared proportions): no new font. Colours are the existing tokens. */
.ls-page-title { font-family: var(--font-body); font-weight: 700; font-size: clamp(28px, 4.2vw, 38px); line-height: 1.1; letter-spacing: -0.015em; color: var(--navy); margin: 0 0 14px; }
.ls-page-sub { font-size: 13.5px; line-height: 1.5; margin: 0 0 4px; max-width: 70ch; }
.ls-hdr-line { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; }
#view-listings .panel-head { padding-bottom: 6px; }
#view-listings .ls-chips { margin-top: 22px; margin-bottom: 18px; }
#view-listings .ls-steps, #view-listings .ls-stepper { margin-top: 22px; }
.ls-rv-box h3, .ls-ph-h { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.005em; }
.ls-back-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid #C9DDF5; background: #EAF2FD; color: #0B4F94; font-size: 13px; font-weight: 600; text-decoration: none; }
.ls-back-btn:hover, .ls-back-btn:focus-visible { background: #DCEAFB; }
.ls-live-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ls-live-btn:hover, .ls-live-btn:focus-visible { background: var(--navy-soft); }
.ls-ico { font-size: 15px; line-height: 1; }
.ls-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ls-manage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
@media (max-width: 560px) { .ls-live-btn { width: 100%; justify-content: center; } }

/* optional details and the commercial approval */
.ls-optional { margin: 18px 0 8px; }
.ls-opt-title { font-family: var(--font-display); font-size: 14px; margin: 0 0 4px; color: var(--ink); }
.ls-opt { border: 1px solid var(--panel-border); border-radius: var(--radius-md); margin: 10px 0; background: var(--bg-inset); }
.ls-opt > summary { cursor: pointer; padding: 10px 14px; display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.ls-opt-t { font-weight: 700; color: var(--ink); }
.ls-opt-h { color: var(--ink-mute); font-size: 12px; }
.ls-opt-body { padding: 4px 14px 12px; }
.ls-appr { border-top: 1px solid var(--panel-border); margin-top: 12px; padding-top: 12px; display: grid; gap: 8px; justify-items: start; }
.ls-appr-h { display: flex; gap: 8px; align-items: center; }
.ls-ferr-line { font-size: 12px; color: #A12622; }
.ls-pv-inv { font-size: 12.5px; margin-top: 10px; padding: 8px 10px; border-radius: var(--radius-sm); }
.ls-pv-inv.ok { background: #DEF5E6; color: #146C43; }
.ls-pv-inv-h { margin-bottom: 6px; }
.ls-pv-inv-rows { margin: 0 0 6px; }
.ls-pv-inv-rows dt { font-weight: 600; margin-top: 4px; } .ls-pv-inv-rows dd { margin: 0; }
.ls-pv-inv.no { background: #FFF9EA; color: #6B4E00; }
.ls-opt-body > .ls-help { margin: 0 0 12px; }

/* description: long-form editor and the preview of the expandable description */
.ls-desc-input { min-height: 280px; line-height: 1.55; resize: vertical; }
.ls-dsc p { margin: 0 0 12px; }
.ls-dsc-h { font-family: var(--font-display); font-size: 15px; margin: 18px 0 8px; color: var(--ink); }
.ls-dsc-label { font-weight: 700; margin: 14px 0 6px !important; }
.ls-dsc-list { margin: 0 0 14px; padding-left: 20px; }
.ls-dsc-list li { margin: 0 0 4px; }
.ls-dsc-toggle { display: inline-block; cursor: pointer; list-style: none; font-weight: 700; font-size: 13px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; margin: 0 0 6px; }
.ls-dsc-toggle::-webkit-details-marker { display: none; }
.ls-dsc-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.ls-dsc-close { display: none; }
.ls-dsc-more[open] .ls-dsc-open { display: none; }
.ls-dsc-more[open] .ls-dsc-close { display: inline; }

/* ---- Website display order (Listings list) ---- */
.ls-ord { margin-top: 18px; padding: 18px 24px; }
.ls-ord-title { font-family: var(--font-display); font-size: 16px; margin: 0 0 4px; color: var(--ink); }
.ls-ord-intro, .ls-ord-note { margin: 0 0 12px; max-width: 72ch; }
.ls-ord-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--panel-border); border-radius: var(--radius-md); background: #fff; }
.ls-ord-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--panel-border-soft); }
.ls-ord-row:last-child { border-bottom: 0; }
.ls-ord-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-inset); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.ls-ord-main { min-width: 0; }
.ls-ord-main .ls-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-ord-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ls-ord-acts { display: flex; gap: 6px; }
.ls-ord-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ls-ord-banner { margin: 12px 0 0; }
.ls-ord-job { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--navy); border-radius: var(--radius-md); background: #fff; }
.ls-ord-foot { margin-top: 14px; }
.ls-ord-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
@media (max-width: 720px) {
  .ls-ord { padding: 16px; }
  .ls-ord-row { grid-template-columns: 28px minmax(0, 1fr); }
  .ls-ord-tags { grid-column: 2; justify-content: flex-start; }
  .ls-ord-acts { grid-column: 1 / -1; flex-wrap: wrap; }
}

/* ---- Listings list: filters, Client / Portfolio, bulk assignment, pages ---- */
.ls-fbar { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; margin: 0 24px 14px; }
.ls-ff { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.ls-ff label { font-size: 11.5px; font-weight: 600; color: var(--ink-mute); letter-spacing: .02em; }
.ls-ff-q { flex: 1 1 240px; min-width: 200px; }
.ls-ff .ls-input, .ls-psel, .ls-bulk .ls-input { width: 100%; }
.ls-fclear { margin-bottom: 1px; }
.ls-count { margin: 0 24px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ls-pf-banner { margin: 0 24px 12px; }
.ls-bulk { margin: 0 24px 12px; padding: 10px 12px; background: var(--bg-inset); border: 1px solid var(--panel-border); border-radius: var(--radius-sm); display: grid; gap: 8px; }
.ls-bulk.on { border-color: var(--blue); background: #EAF3FD; }
.ls-bulk-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.ls-bulk-row .ls-input { width: auto; min-width: 190px; flex: 0 1 260px; }
.ls-bulk-n { font-size: 13px; font-weight: 700; min-width: 96px; }
/* the global first-column rule gives column one a 210px minimum: the checkbox column must be as narrow as its checkbox */
.ls-table thead th.ls-lrow-sel, .ls-table tbody td.ls-lrow-sel { min-width: 0; width: 1%; white-space: nowrap; padding-left: 20px; padding-right: 4px; }
.ls-lrow-on { background: #F3F8FE; }
.ls-lrow-pf { min-width: 150px; }
.ls-psel { min-width: 140px; max-width: 210px; padding: 6px 8px; font-size: 13px; }
.ls-crmaddr { color: var(--ink-soft); font-size: 12.5px; white-space: normal !important; }
.ls-missing { font-style: italic; color: var(--ink-faint); }
.ls-pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px 24px; }
.ls-empty h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.ls-ord-scope { margin: 0 0 10px; font-weight: 600; }
@media (max-width: 720px) {
  .ls-fbar, .ls-count, .ls-bulk, .ls-pf-banner { margin-left: 16px; margin-right: 16px; }
  .ls-ff { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .ls-ff-q { flex: 1 1 100%; }
  .ls-fclear { flex: 1 1 100%; }
  .ls-table td .ls-sub { white-space: normal; }
  .ls-lrow-prop { min-width: 230px; }
  #view-listings .panel-head { flex-wrap: wrap; gap: 10px; }
  #view-listings .ls-actions { flex-wrap: wrap; }
}

/* ---- Property portfolio ---- */
.ls-mode { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.ls-mode-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; min-width: 220px; }
.ls-mode-opt.on { border-color: var(--blue); background: #EAF3FD; }
.ls-mode-opt .ls-sub { grid-column: 2; margin: 0; }
.ls-pf-count { font-weight: 700; margin-bottom: 8px; }
.ls-chips-sel { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-chip-sel { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border: 1px solid var(--panel-border); border-radius: 999px; background: #fff; font-size: 13px; }
.ls-x { border: 0; background: var(--bg-inset); border-radius: 50%; width: 22px; height: 22px; line-height: 20px; cursor: pointer; font-size: 15px; color: var(--ink-soft); }
.ls-x:hover { background: #F0B8B6; }
.ls-pf-summary { position: sticky; top: 0; z-index: 2; background: var(--panel); border-bottom: 1px solid var(--panel-border-soft); }
.ls-pf-list, .ls-pf-addlist { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--panel-border); border-radius: var(--radius-md); background: #fff; }
.ls-pf-member, .ls-pf-addrow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--panel-border-soft); }
.ls-pf-member:last-child, .ls-pf-addrow:last-child { border-bottom: 0; }
.ls-pf-member .ls-pick-main, .ls-pf-addrow .ls-pick-main { flex: 1 1 240px; min-width: 0; }
.ls-pf-mstat, .ls-pf-mact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ls-pf-addbox { margin-top: 12px; }
.ls-pf-fig { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; align-items: center; padding: 10px; margin: 8px 0; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); background: #fff; }
.ls-pf-src { grid-column: 1 / -1; }
.ls-pf-issues { margin: 6px 0 10px; padding-left: 18px; font-size: 12.5px; }
.ls-pf-issues.todo { color: #8A5A00; } .ls-pf-issues.know { color: var(--ink-soft); }
.ls-pf-card { margin-bottom: 14px; }
.ls-pf-hist { margin-top: 14px; }
.ls-pf-members, .ls-pf-figs { margin-top: 18px; }
@media (max-width: 720px) { .ls-mode-opt { min-width: 0; flex: 1 1 100%; } .ls-pf-summary { position: static; } }

/* What is needed before publishing: required items, recommendations and technical problems, kept apart */
.ls-iss-panel { margin: 0 0 16px; }
.ls-iss-group { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--panel-border); border-radius: var(--radius-md); background: #fff; }
.ls-iss-req { border-left: 4px solid #B3261E; }
.ls-iss-warn { border-left: 4px solid #B07A00; }
.ls-iss-tech { border-left: 4px solid #5B4B8A; }
.ls-iss-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ls-iss { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--panel-border-soft); }
.ls-iss:first-child { border-top: 0; }
.ls-iss-main { flex: 1 1 260px; min-width: 0; }
.ls-iss-fix { flex: 1 1 100%; margin: 0; }
.ls-iss-go { flex: 0 0 auto; }
.ls-opt-body > .ls-ferr:empty { display: none; }
[aria-invalid="true"] { outline: 2px solid #B3261E; outline-offset: 1px; }
