/* Shared Estate OS presentation: service adapters supply content, never layout. */
html .dashboard-body .workspace-main .workspace-content-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:0;min-width:0}
html .dashboard-body .workspace-main .workspace-heading-copy{flex:1;min-width:0}
html .dashboard-body .workspace-main .workspace-heading-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
html .dashboard-body .workspace-main .workspace-heading-title>h2{margin:0;padding:0;line-height:1.3}
html .dashboard-body .workspace-main .workspace-heading-title>.status-pill{flex:none;margin:0;line-height:1.2}
html .dashboard-body .workspace-main .workspace-heading-copy>.section-intro{margin:10px 0 0;max-width:none}
html .dashboard-body .workspace-main .workspace-heading-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;flex:none}
html .dashboard-body .workspace-main .workspace-heading-actions>.workspace-list-tools-actions{margin:0;padding:0}
html .dashboard-body .workspace-main .workspace-record-list{display:grid;gap:8px;width:100%;min-width:0;margin:0;padding:0;list-style:none}
html .dashboard-body .workspace-main .workspace-record-list>[data-row-preview],html .dashboard-body .workspace-main .workspace-record-list>[data-row-link]{box-sizing:border-box;width:100%;margin:0;min-width:0;border:1px solid var(--border,#294858);border-radius:10px;background:var(--surface-deep,#091923);padding:14px 16px}
html .dashboard-body .workspace-main .workspace-record-list .list-row-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
@media(max-width:700px){html .dashboard-body .workspace-main .workspace-content-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}html .dashboard-body .workspace-main .workspace-heading-actions{flex:1 0 100%;justify-content:flex-start}html .dashboard-body .workspace-main .workspace-record-list>[data-row-preview],html .dashboard-body .workspace-main .workspace-record-list>[data-row-link]{padding:12px}}

/* Keep selection controls inside their own gutter, including compact/mobile rows. */
html .dashboard-body .workspace-main .workspace-record-list>.workspace-bulk-selectable:not([data-bulk-gutter="outside"]){position:relative;padding-inline-start:48px}
html .dashboard-body .workspace-main .workspace-record-list>.workspace-bulk-selectable>.workspace-bulk-select{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);width:20px;height:20px;display:flex;align-items:center;justify-content:center;margin:0;padding:0}
html .dashboard-body .workspace-main .workspace-record-list>.workspace-bulk-selectable>.workspace-bulk-select input{margin:0;width:16px;height:16px;flex:none}
html .dashboard-body .workspace-main .content-section.estate-os-list-page:has(.workspace-record-list){box-sizing:border-box;padding:24px!important;min-width:0}
@media(max-width:700px){html .dashboard-body .workspace-main .content-section.estate-os-list-page:has(.workspace-record-list){padding:16px!important}html .dashboard-body .workspace-main .workspace-record-list>.workspace-bulk-selectable:not([data-bulk-gutter="outside"]){padding-inline-start:48px}}

html .dashboard-body .workspace-main .workspace-record-list>.workspace-list-details{margin:0;border:0;padding:0;background:none;min-width:0}
html .dashboard-body .workspace-main .workspace-record-list>.workspace-list-details>.workspace-list-row{box-sizing:border-box;width:100%;margin:0;border:1px solid var(--ui-border);border-radius:10px;padding:14px 16px;background:var(--ui-deep);min-width:0}
html .dashboard-body .workspace-main .workspace-record-list>.workspace-list-details>.workspace-list-row.workspace-bulk-selectable{position:relative;padding-inline-start:48px}
html .dashboard-body .workspace-main .workspace-record-list>.workspace-list-details>.workspace-bulk-selectable>.workspace-bulk-select{inset-inline-start:12px;top:50%;transform:translateY(-50%);width:20px;height:20px;margin:0;display:flex;align-items:center;justify-content:center}

/* Service icons retain their identity on the neutral selected surface. */
html .dashboard-body .dashboard-nav .service-tree-shop .service-tree-parent:is(.active,[aria-current="page"],:hover)>.service-tree-icon{color:var(--picker-shop,#ffca08)!important;border-color:var(--picker-shop,#ffca08)!important;background:var(--ui-deep)!important;filter:none;opacity:1}
html .dashboard-body .dashboard-nav .service-tree-children>a[aria-current="page"]{color:var(--ui-text)!important;background:var(--ui-raised)!important}

/* Promotion controls: mode first, value and unit together beneath it in column two. */
html .dashboard-body .workspace-main [data-rental-promotion] .promotion-choice-row{grid-template-columns:minmax(0,1fr);gap:12px}
html .dashboard-body .workspace-main [data-rental-promotion] .promotion-choice-row>.promotion-legacy-column{grid-column:1!important}
html .dashboard-body .workspace-main [data-rental-promotion] .promotion-legacy-column>[data-commercial-panel]{grid-template-columns:80px minmax(0,1fr);gap:12px}

/* Three columns when space permits; pricing moves below on narrower containers. */
html .dashboard-body .workspace-main .announcement-preview{container-type:inline-size}
html .dashboard-body .workspace-main .announcement-preview .public-land-card{display:grid!important;grid-template-columns:minmax(170px,.8fr) minmax(0,1.6fr) minmax(230px,1fr);align-items:stretch;gap:0!important}
html .dashboard-body .workspace-main .announcement-preview .public-land-card>.public-land-map{width:100%;height:100%;min-height:210px;aspect-ratio:auto;align-self:stretch;margin:0!important;border-width:0 1px 0 0}
html .dashboard-body .workspace-main .announcement-preview .public-land-map img{width:100%;height:100%;object-fit:fill}
html .dashboard-body .workspace-main .announcement-preview .public-land-content{width:auto;min-width:0;padding:18px;gap:10px;overflow-wrap:anywhere}
html .dashboard-body .workspace-main .announcement-preview .public-land-footer{grid-column:3;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:space-between!important;justify-self:stretch!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:0;box-sizing:border-box;padding:16px!important;gap:16px;border:0;border-left:1px solid var(--ui-border);margin:0!important}
html .dashboard-body .workspace-main .announcement-preview .public-land-offer{min-width:0;width:auto!important;text-align:left}
html .dashboard-body .workspace-main .announcement-preview .public-land-footer .button{flex:none;align-self:flex-end;margin:0!important}
html .dashboard-body .workspace-main .announcement-preview .tier-lines{display:flex;flex-wrap:wrap;gap:6px 20px}
html .dashboard-body .workspace-main .announcement-preview .tier-lines p{margin:0}
html .dashboard-body .workspace-main .announcement-preview .offer-badges{margin-top:10px}
@container (max-width:850px){
 html .dashboard-body .workspace-main .announcement-preview .public-land-card{grid-template-columns:minmax(130px,.7fr) minmax(0,1.5fr)}
 html .dashboard-body .workspace-main .announcement-preview .public-land-footer{grid-column:1/-1;flex-direction:row!important;align-items:center!important;border-left:0;border-top:1px solid var(--ui-border)}
 html .dashboard-body .workspace-main .announcement-preview .public-land-offer{flex:1}
}
@container (max-width:420px){
 html .dashboard-body .workspace-main .announcement-preview .public-land-card{grid-template-columns:minmax(0,1fr)}
 html .dashboard-body .workspace-main .announcement-preview .public-land-card>.public-land-map{height:180px;min-height:180px;border:0}
 html .dashboard-body .workspace-main .announcement-preview .public-land-footer{flex-wrap:wrap}
 html .dashboard-body .workspace-main .announcement-preview .public-land-offer{flex:1 0 100%}
 html .dashboard-body .workspace-main .announcement-preview .public-land-footer .button{margin-left:auto!important}
}

html .dashboard-body .workspace-main .announcement-preview .public-land-card>.public-land-map{border-right:0!important}
html .dashboard-body .workspace-main .announcement-preview .public-land-footer{border-left:0!important}

@media(max-width:700px){html .dashboard-body .workspace-main .commercial-expiry-section label:has(select[name="overdue_grace_days"]){flex-flow:column nowrap!important;align-items:flex-start!important;white-space:normal;gap:8px}html .dashboard-body .workspace-main .commercial-expiry-section label:has(select[name="overdue_grace_days"]) .workspace-select{flex:none;width:180px!important;max-width:100%}}

/* Native ad editor: preview, content and commercial sections follow one reading order. */
html .dashboard-body .record-ad-editor .record-shared-preview{margin:0 0 24px!important;padding:0!important}
html .dashboard-body .record-ad-editor .texture-preview-card{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);align-items:start;gap:18px!important;border:1px solid var(--ui-border);border-radius:10px;padding:18px!important;background:var(--ui-deep)}
html .dashboard-body .record-ad-editor .texture-preview-card>.section-heading{grid-column:1/-1;margin:0!important}
html .dashboard-body .record-ad-editor .texture-preview-frame{margin:0;min-width:0;width:100%}
html .dashboard-body .record-ad-editor .texture-preview-frame img{width:100%;max-height:250px;object-fit:contain}
html .dashboard-body .record-ad-editor .ads-campaign-preview-details{min-width:0;display:grid;gap:12px}
html .dashboard-body .record-ad-editor .record-form-section{margin-top:24px!important}
html .dashboard-body .record-ad-editor .record-form-section .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
html .dashboard-body .record-ad-editor .record-form-section .form-grid>.span-2{grid-column:1/-1}
@media(max-width:600px){html .dashboard-body .record-ad-editor .texture-preview-card{grid-template-columns:minmax(0,1fr)}html .dashboard-body .record-ad-editor .texture-preview-frame{max-width:220px;justify-self:center}html .dashboard-body .record-ad-editor .record-form-section .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Journal filters keep a consistent label row and control baseline. */
html .dashboard-body .workspace-main .workspace-journal .workspace-list-filters{align-items:start!important}
html .dashboard-body .workspace-main .workspace-journal .workspace-list-filters label{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;margin:0!important;padding:0!important;min-width:0;align-self:start!important}
html .dashboard-body .workspace-main .workspace-journal .workspace-list-filters label>span:first-child{display:block;min-height:18px;line-height:18px;margin:0!important;padding:0!important}
html .dashboard-body .workspace-main .workspace-journal .workspace-list-filters label>:is(input,select,.workspace-select){margin:0!important;height:40px!important;min-height:40px!important;box-sizing:border-box;align-self:stretch}

/* A single, compact filter surface shared by history, payments and reports. */
html .dashboard-body .workspace-main .workspace-journal .workspace-journal-filter-panel.workspace-list-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;padding:18px!important;margin:0 0 18px!important;border:1px solid var(--ui-border)!important;border-radius:10px;background:var(--ui-deep)!important}
html .dashboard-body .workspace-main .workspace-journal-filter-panel label:has([name="service"]){grid-column:span 2}
html .dashboard-body .workspace-main .workspace-journal-filter-panel label>span:first-child{font-size:13px!important;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ui-muted)}
html .dashboard-body .workspace-main .workspace-journal-filter-panel :is(.button-row,.button-row:has(button)){grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin:0;padding:0}
html .dashboard-body .workspace-main .workspace-journal-filter-panel label:has([name="per_page"]){max-width:150px}
html .dashboard-body .workspace-main .workspace-journal-filter-panel .workspace-select{width:100%!important;max-width:none!important}
@media(max-width:900px){html .dashboard-body .workspace-main .workspace-journal .workspace-journal-filter-panel.workspace-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){html .dashboard-body .workspace-main .workspace-journal .workspace-journal-filter-panel.workspace-list-filters{grid-template-columns:minmax(0,1fr);padding:14px!important;gap:14px!important}html .dashboard-body .workspace-main .workspace-journal-filter-panel label:has([name="service"]){grid-column:1}html .dashboard-body .workspace-main .workspace-journal-filter-panel .button-row{justify-content:flex-start}}

/* Compact filter grid: controls fill their cells, footer shares one row. */
html .dashboard-body .workspace-main .workspace-journal .workspace-journal-filter-panel.workspace-list-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px!important}
html .dashboard-body .workspace-main .workspace-journal-filter-panel label:has([name="service"]){grid-column:span 2}
html .dashboard-body .workspace-main .workspace-journal .workspace-journal-filter-panel label>:is(input,select,.workspace-select){width:100%!important;max-width:none!important;min-width:0!important}
html .dashboard-body .workspace-main .workspace-journal-filter-panel label .workspace-select-button,html .dashboard-body .workspace-main .workspace-journal-filter-panel label .workspace-select>button{width:100%!important;max-width:none!important;justify-content:space-between}
html .dashboard-body .workspace-main .workspace-journal-filter-panel label:has([name="per_page"]){grid-column:1;max-width:110px}
html .dashboard-body .workspace-main .workspace-journal-filter-panel .button-row{grid-column:2/-1!important;align-self:end;min-height:40px;justify-content:flex-end}
@media(max-width:900px){html .dashboard-body .workspace-main .workspace-journal .workspace-journal-filter-panel.workspace-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}html .dashboard-body .workspace-main .workspace-journal-filter-panel .button-row{grid-column:2!important}}
@media(max-width:480px){html .dashboard-body .workspace-main .workspace-journal .workspace-journal-filter-panel.workspace-list-filters{grid-template-columns:minmax(0,1fr)}html .dashboard-body .workspace-main .workspace-journal-filter-panel label:has([name="service"]),html .dashboard-body .workspace-main .workspace-journal-filter-panel .button-row{grid-column:1!important}html .dashboard-body .workspace-main .workspace-journal-filter-panel .button-row{justify-content:flex-start}}

/* Flat journal toolbar follows the parcel-list filter presentation. */
html .dashboard-body .workspace-main .workspace-journal .workspace-journal-flat-filters.workspace-list-filters{display:block!important;padding:0 0 18px!important;margin:0 0 18px!important;border:0!important;border-bottom:1px solid var(--ui-border)!important;border-radius:0;background:transparent!important}
html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-primary{display:grid;grid-template-columns:minmax(160px,1.3fr) repeat(2,minmax(130px,1fr)) minmax(140px,1fr) 85px auto;align-items:end;gap:12px}
html .dashboard-body .workspace-main .workspace-journal-flat-filters label{grid-column:auto!important;max-width:none!important}
html .dashboard-body .workspace-main .workspace-journal-flat-filters label>span:first-child{font-size:14px!important;font-weight:650!important;color:var(--ui-text)!important}
html .dashboard-body .workspace-main .workspace-journal-flat-filters .button-row{grid-column:auto!important;display:flex;align-self:end;gap:8px;flex-wrap:nowrap}
html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-extra-filters{border:0;background:none;padding:0;margin:12px 0 0}
html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-extra-filters>summary{cursor:pointer;display:list-item;width:max-content;font-size:13px;color:var(--ui-muted);padding:4px 0;background:none;border:0}
html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,220px));gap:12px;margin-top:12px}
@media(max-width:1200px){html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-primary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-primary,html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}html .dashboard-body .workspace-main .workspace-journal-flat-filters .button-row{flex-wrap:wrap}}
@media(max-width:420px){html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-primary,html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-secondary{grid-template-columns:minmax(0,1fr)}}

html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-primary>.button-row{height:40px;min-height:40px;align-items:center!important;align-self:end;margin:0!important;padding:0!important}
html .dashboard-body .workspace-main .workspace-journal-flat-filters .journal-filter-primary>.button-row>.button{margin:0!important;align-self:center}

html .dashboard-body .workspace-main .journal-action-identity{display:flex!important;align-items:center;gap:12px;min-width:0}
html .dashboard-body .workspace-main .journal-action-identity>span:last-child{min-width:0}
html .dashboard-body .workspace-main .journal-service-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px}
html .dashboard-body .workspace-main .journal-service-icon svg{width:28px;height:28px}
html .dashboard-body .workspace-main .journal-report-date-range{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;grid-column:1!important;grid-row:1;min-width:0;order:-1}
html .dashboard-body .workspace-main .journal-report-date-range>label{min-width:0;display:flex;flex-direction:column;gap:8px}
html .dashboard-body .workspace-main .journal-report-date-range input{width:100%!important;max-width:none!important;min-width:0;box-sizing:border-box}
html .dashboard-body .workspace-main .journal-filter-primary:has(.journal-report-date-range){grid-template-columns:minmax(300px,2fr) minmax(160px,1.2fr) minmax(140px,1fr) 85px auto}
@media(max-width:1100px){html .dashboard-body .workspace-main .journal-filter-primary:has(.journal-report-date-range){grid-template-columns:minmax(280px,1.8fr) minmax(0,1fr)}}
@media(max-width:600px){html .dashboard-body .workspace-main .journal-filter-primary:has(.journal-report-date-range){grid-template-columns:minmax(0,1fr)}}

html .dashboard-body .workspace-main .journal-filter-primary:has(.journal-report-date-range){grid-template-columns:minmax(160px,1.2fr) minmax(300px,2fr) minmax(140px,1fr) 85px auto}
html .dashboard-body .workspace-main .journal-report-date-range{grid-column:2!important;order:0}
html .dashboard-body .workspace-main .journal-filter-primary:has(.journal-report-date-range)>label:has([name="service"]){grid-column:1!important;grid-row:1}
html .dashboard-body .workspace-main .workspace-report .form-grid:has(>.journal-report-date-range)>label:has([name="service"]){grid-column:1;grid-row:1}
@media(max-width:1100px){html .dashboard-body .workspace-main .journal-filter-primary:has(.journal-report-date-range){grid-template-columns:minmax(160px,1fr) minmax(280px,1.8fr)}}
@media(max-width:600px){html .dashboard-body .workspace-main .journal-filter-primary:has(.journal-report-date-range){grid-template-columns:minmax(0,1fr)}html .dashboard-body .workspace-main .journal-report-date-range{grid-column:1!important;grid-row:auto}}

html .dashboard-body .workspace-main .workspace-intro-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}html .dashboard-body .workspace-main .workspace-intro-heading>.button{flex:none;margin:0}

html .dashboard-body .workspace-main .workspace-filter-actions{display:flex;flex-flow:row nowrap;align-items:center;align-self:end;gap:8px;margin:0;padding:0}
html .dashboard-body .workspace-main :is(.workspace-filter-actions,.workspace-journal-flat-filters .button-row)>.button{display:inline-flex!important;align-items:center;justify-content:center;height:40px!important;min-height:40px!important;box-sizing:border-box;margin:0!important;padding-block:0!important;white-space:nowrap}

/* One action treatment for every read-only list filter toolbar. */
html .dashboard-body .workspace-main .workspace-filter-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box;height:40px!important;min-height:40px!important;width:auto!important;max-width:none;border:1px solid var(--ui-border)!important;border-radius:6px!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;font-family:inherit!important;font-size:13px!important;font-weight:650!important;line-height:1.2!important;text-decoration:none!important;padding:0 12px!important;margin:0!important;white-space:nowrap;align-self:end}
html .dashboard-body .workspace-main .workspace-filter-action:hover{color:#00c7d5!important;border-color:var(--ui-border)!important;background:var(--ui-raised)!important}
html .dashboard-body .workspace-main .workspace-filter-action:focus-visible{outline:2px solid #00c7d5;outline-offset:2px}
html .dashboard-body .workspace-main .workspace-filter-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end;gap:8px!important;min-height:40px;margin:0!important;padding:0!important;align-self:end}
@media(max-width:600px){html .dashboard-body .workspace-main .workspace-filter-actions{flex-wrap:wrap;justify-content:flex-start}}

/* Give the next content section clear breathing room after summary counters. */
html .dashboard-body .workspace-main :is(.stats-grid,[data-workspace-metrics]){margin-bottom:40px!important}
html .dashboard-body .workspace-main :is(.stats-grid,[data-workspace-metrics])+.content-section{margin-top:0!important}

/* Journal badges match the service navigation identity. */
html .dashboard-body .workspace-main .journal-service-icon .service-tree-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;box-sizing:border-box;border:1px solid currentColor;border-radius:5px;font-family:ui-monospace,monospace;font-size:10px;font-weight:700;background:var(--ui-deep)}
html .dashboard-body .workspace-main .journal-service-icon .service-tree-estate{color:var(--picker-estate,#00c7d5)}
html .dashboard-body .workspace-main .journal-service-icon .service-tree-space{color:var(--picker-space,#ff823b)}
html .dashboard-body .workspace-main .journal-service-icon .service-tree-ads{color:var(--picker-ads,#ff00b8)}
html .dashboard-body .workspace-main .journal-service-icon .service-tree-pay2visit{color:var(--picker-pay2visit,#77ff00)}
html .dashboard-body .workspace-main .journal-service-icon .service-tree-events{color:var(--picker-events,#b8b8ee)}
html .dashboard-body .workspace-main .journal-service-icon .service-tree-visitors{color:var(--picker-visitors,#00dfbb)}
html .dashboard-body .workspace-main .journal-service-icon .service-tree-bot{color:var(--picker-bot,#00baff)}
html .dashboard-body .workspace-main .journal-service-icon .service-tree-shop{color:var(--picker-shop,#ffca08)}
