/* Weardigital Property — admin */
.wdp-admin #wpcontent { padding-left: 0; background: #f4f2ee; }
.wdp-admin #wpbody-content > .notice, .wdp-admin #wpbody-content > .update-nag, .wdp-admin #wpbody-content > .error { margin: 12px 24px; }
.wdp-wrap { margin: 0; padding: 0 0 60px; color: #1a1a1a; font-size: 14px; --g: #C5A065; --gd: #A8844A; --k: #0B0B0B; --line: #e7e2d8; --muted: #7a7670; }
.wdp-wrap * { box-sizing: border-box; }
.wdp-wrap a { color: var(--gd); text-decoration: none; }
.wdp-wrap a:hover { color: var(--k); }
.wdp-wrap h1, .wdp-wrap h2, .wdp-wrap h3 { color: #111; }

/* Top bar */
.wdp-topbar { display: flex; align-items: center; gap: 18px; background: var(--k); color: #fff; padding: 12px 28px; position: sticky; top: 32px; z-index: 50; }
.wdp-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; }
.wdp-brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--g); color: var(--k); display: grid; place-items: center; }
.wdp-brand em { font-style: normal; color: #9a958c; font-weight: 400; font-size: 12px; margin-left: 4px; }
.wdp-quicksearch { flex: 1; max-width: 520px; margin-left: auto; position: relative; }
.wdp-quicksearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8a8580; }
.wdp-quicksearch input { width: 100%; padding-left: 36px !important; background: #1c1c1c; border: 1px solid #2c2c2c; color: #fff; border-radius: 30px; padding: 8px 14px 8px 36px; min-height: 36px; }
.wdp-quicksearch input:focus { border-color: var(--g); box-shadow: none; outline: 0; }

/* Page head */
.wdp-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 28px 28px 18px; }
.wdp-pagehead h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0; padding: 0; }
.wdp-sub { margin: 6px 0 0; color: var(--muted); }
.wdp-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.wdp-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: #1a1a1a !important; border-radius: 30px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; line-height: 1.2; transition: all .2s; white-space: nowrap; }
.wdp-btn:hover { border-color: var(--k); }
.wdp-btn-gold { background: var(--g); border-color: var(--g); color: var(--k) !important; }
.wdp-btn-gold:hover { background: #fff; border-color: #fff; }
.wdp-wrap .wdp-btn-gold:hover { background: var(--k); border-color: var(--k); color: #fff !important; }
.wdp-btn-ghost { background: transparent; }
.wdp-btn-danger { color: #a23 !important; border-color: #f0d4d4; }
.wdp-btn-block { width: 100%; justify-content: center; padding: 12px; font-size: 14px; }
.wdp-link-danger { background: none; border: 0; color: #a23; cursor: pointer; padding: 0; }

/* Notices */
.wdp-notice { margin: 0 28px 16px; padding: 12px 16px; border-radius: 10px; background: #fff; border-left: 4px solid var(--g); }
.wdp-notice-success { border-left-color: #2E7D5B; }
.wdp-notice-error { border-left-color: #b32d2e; }
.wdp-key { display: block; margin-top: 8px; padding: 10px; background: #111; color: #fff; border-radius: 8px; word-break: break-all; }

/* Panels & grids */
.wdp-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.wdp-panel > header { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 14px; }
.wdp-panel h2 { font-family: Georgia, serif; font-weight: 400; font-size: 19px; margin: 0 0 12px; }
.wdp-panel > header h2 { margin: 0; }
.wdp-grid-2, .wdp-grid-3 { display: grid; gap: 18px; padding: 0 28px; margin-bottom: 18px; }
.wdp-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wdp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wdp-grid-2 > *, .wdp-grid-3 > * { min-width: 0; }
.wdp-muted { color: var(--muted); font-size: 13px; }
.wdp-empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.wdp-empty h2 { margin-bottom: 6px; }
.wdp-wrap > .wdp-panel { margin: 0 28px 18px; }

/* Stats */
.wdp-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 0 28px; margin-bottom: 18px; }
.wdp-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; color: inherit !important; transition: transform .2s, box-shadow .2s; }
a.wdp-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.wdp-stat span { color: var(--muted); font-size: 12px; }
.wdp-stat strong { font-family: Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; color: #111; }
.wdp-stat.is-alert { background: var(--k); border-color: var(--k); }
.wdp-stat.is-alert span { color: #aaa; }
.wdp-stat.is-alert strong { color: var(--g); }

.wdp-today { list-style: none; margin: 0 0 10px; padding: 0; }
.wdp-today li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #f1ede5; margin: 0; }
.wdp-today strong { font-family: Georgia, serif; font-size: 22px; font-weight: 400; min-width: 36px; }
.wdp-bar { display: grid; grid-template-columns: 110px 1fr 34px; gap: 10px; align-items: center; padding: 6px 0; color: inherit !important; }
.wdp-bar-track { height: 8px; border-radius: 8px; background: #f1ede5; overflow: hidden; }
.wdp-bar-track span { display: block; height: 100%; border-radius: 8px; }
.wdp-bar-n { text-align: right; font-weight: 600; }
.wdp-dept { display: flex; gap: 10px; margin-top: 14px; }
.wdp-dept div { flex: 1; background: #faf8f4; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; }
.wdp-alerts { list-style: none; margin: 0 0 10px; padding: 0; }
.wdp-alerts li { padding: 10px 12px 10px 34px; border-radius: 10px; margin-bottom: 8px; position: relative; background: #faf8f4; }
.wdp-alerts li:before { content: ''; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--g); }
.wdp-alerts li.is-ok:before { background: #2E7D5B; }
.wdp-mini-list { list-style: none; margin: 0; padding: 0; }
.wdp-mini-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1ede5; margin: 0; }
.wdp-mini-list li:last-child { border-bottom: 0; }
.wdp-mini-list img { width: 60px; height: 44px; object-fit: cover; border-radius: 8px; }
.wdp-mini-list div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wdp-mini-list div span { color: var(--muted); font-size: 12px; }
.wdp-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--k); color: var(--g); display: grid; place-items: center; font-weight: 600; }
.wdp-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.wdp-timeline li { display: flex; gap: 14px; padding: 0 0 16px; position: relative; margin: 0; }
.wdp-timeline li:before { content: ''; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1px; background: var(--line); }
.wdp-timeline li:last-child:before { display: none; }
.wdp-timeline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--g); margin-top: 5px; flex: none; position: relative; z-index: 1; }
.wdp-timeline div { display: flex; flex-direction: column; }
.wdp-timeline div span { color: var(--muted); font-size: 12px; }
.wdp-modules-mini { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.wdp-modules-mini li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f4f1ea; margin: 0; break-inside: avoid; font-size: 13px; }
.wdp-modules-mini em { font-style: normal; font-size: 11px; color: var(--muted); }
.wdp-modules-mini li.on em { color: #2E7D5B; }

/* Tabs & filters */
.wdp-tabs, .wdp-subtabs { display: flex; gap: 4px; padding: 0 28px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wdp-tabs a, .wdp-subtabs a { padding: 10px 14px; color: var(--muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.wdp-tabs a.is-active, .wdp-subtabs a.is-active { color: var(--k) !important; border-bottom-color: var(--g); }
.wdp-tabs em { font-style: normal; background: #ebe6dc; border-radius: 10px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
.wdp-subtabs { border: 0; padding-top: 0; }
.wdp-subtabs a { border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; background: #fff; }
.wdp-subtabs a.is-active { background: var(--k); color: #fff !important; border-color: var(--k); }
.wdp-filters { display: flex; gap: 8px; padding: 0 28px; margin-bottom: 14px; flex-wrap: wrap; }
.wdp-filters input[type=search] { flex: 1; min-width: 220px; }
.wdp-wrap input[type=text], .wdp-wrap input[type=search], .wdp-wrap input[type=email], .wdp-wrap input[type=number], .wdp-wrap input[type=date], .wdp-wrap input[type=url], .wdp-wrap select, .wdp-wrap textarea { border: 1px solid #ddd6c9; border-radius: 10px; padding: 7px 12px; min-height: 38px; background: #fff; box-shadow: none; font-size: 14px; max-width: 100%; }
.wdp-wrap select { padding: 6px 28px 6px 12px; height: 40px; min-height: 40px; line-height: 1.3; }
.wdp-wrap .wdp-field input[type=text], .wdp-wrap .wdp-field input[type=number], .wdp-wrap .wdp-field input[type=date], .wdp-wrap .wdp-field input[type=email] { height: 40px; }
.wdp-wrap input:focus, .wdp-wrap select:focus, .wdp-wrap textarea:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(197,160,101,.18); outline: 0; }
.wdp-bulk { display: flex; gap: 8px; margin: 0 28px 10px; }

/* Tables */
.wdp-table-wrap { overflow-x: auto; }
.wdp-table { width: calc(100% - 56px); margin: 0 28px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wdp-panel .wdp-table, .wdp-table-wrap .wdp-table { width: 100%; margin: 0; }
.wdp-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 12px 14px; background: #faf8f4; border-bottom: 1px solid var(--line); }
.wdp-table td { padding: 12px 14px; border-bottom: 1px solid #f1ede5; vertical-align: middle; }
.wdp-table tr:last-child td { border-bottom: 0; }
.wdp-table tbody tr:hover { background: #fcfbf8; }
.wdp-table .check { width: 30px; }
.wdp-table .thumb { width: 92px; }
.wdp-table .thumb img { width: 84px; height: 60px; object-fit: cover; border-radius: 10px; display: block; }
.wdp-table .main .title { font-weight: 600; color: #111 !important; display: block; font-size: 14px; }
.wdp-table .meta { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.wdp-table .price { font-weight: 600; white-space: nowrap; }
.wdp-table .muted { color: var(--muted); font-size: 12px; white-space: nowrap; }
.wdp-table tr.is-unread .title { color: var(--k) !important; }
.wdp-table tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--g); }
.row-actions-cell a { margin-right: 10px; font-size: 12px; }
.flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.flag { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; padding: 2px 7px; border-radius: 10px; background: #f3eee4; color: #7a6136; }
.flag.dept { background: #f0f0f0; color: #555; }
.wdp-pill { --pill: #888; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: color-mix(in srgb, var(--pill) 12%, #fff); color: var(--pill); white-space: nowrap; }
.wdp-pill:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wdp-pill-new { --pill: #A8844A; } .wdp-pill-in_progress { --pill: #2a6fb0; } .wdp-pill-responded { --pill: #2E7D5B; } .wdp-pill-closed { --pill: #777; } .wdp-pill-spam { --pill: #a23; }
.wdp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #ccc; }
.wdp-dot.on { background: #2E7D5B; }
.wdp-pagination { padding: 16px 28px; }
.wdp-pagination .page-numbers { display: inline-block; min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); margin-right: 4px; color: #333 !important; }
.wdp-pagination .current { background: var(--k); color: #fff !important; border-color: var(--k); }

/* Editor */
.wdp-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; padding: 0 28px; align-items: start; }
.wdp-editor-main { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wdp-edtabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: #faf8f4; padding: 0 10px; }
.wdp-edtabs a { padding: 14px 14px; color: var(--muted) !important; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.wdp-edtabs a.is-active { color: var(--k) !important; border-bottom-color: var(--g); }
.wdp-edpanel { display: none; padding: 24px 26px 30px; }
.wdp-edpanel.is-active { display: block; }
.wdp-edpanel h3 { font-family: Georgia, serif; font-weight: 400; font-size: 18px; margin: 6px 0 14px; }
.wdp-group + .wdp-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid #f1ede5; }
.wdp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 14px; }
.wdp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.wdp-row .wdp-field { margin-bottom: 0; }
.wdp-field.span-2 { grid-column: span 2; }
.wdp-field > label { font-weight: 500; font-size: 13px; color: #333; }
.wdp-field small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.wdp-field input, .wdp-field select, .wdp-field textarea { width: 100%; }
.wdp-inline { display: flex; gap: 6px; }
.wdp-inline select { width: 90px; flex: none; }
.wdp-money { display: flex; align-items: center; border: 1px solid #ddd6c9; border-radius: 10px; background: #fff; overflow: hidden; }
.wdp-money span { padding: 0 10px; color: var(--muted); border-right: 1px solid #eee; }
.wdp-money input { border: 0 !important; box-shadow: none !important; }
.wdp-seg { display: inline-flex; background: #f3efe7; border-radius: 30px; padding: 4px; margin-bottom: 18px; }
.wdp-seg input { display: none; }
.wdp-seg span { display: block; padding: 8px 20px; border-radius: 30px; cursor: pointer; font-weight: 500; color: var(--muted); }
.wdp-seg input:checked + span { background: var(--k); color: #fff; }
.wdp-switch { display: inline-flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 400 !important; }
.wdp-switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wdp-switch span { width: 36px; height: 20px; border-radius: 20px; background: #ddd6c9; position: relative; transition: .2s; flex: none; }
.wdp-switch span:after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.wdp-switch input:checked + span { background: var(--g); }
.wdp-switch input:checked + span:after { left: 18px; }
.wdp-switch input:focus-visible + span { outline: 2px solid var(--k); }
.wdp-flags { display: grid; gap: 10px; margin: 6px 0 14px; padding: 14px; background: #faf8f4; border-radius: 12px; }
.wdp-flags .wdp-field { margin: 0; }
.wdp-editor-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.wdp-publish { padding: 18px; }
.wdp-side-photo { height: 150px; border-radius: 12px; background: #eee center/cover; margin-bottom: 12px; }
.wdp-side-ref { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 13px; }
.wdp-side-ref span { color: var(--gd); font-weight: 600; }
.wdp-side-meta { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 0 6px; }
.wdp-delete { display: block; text-align: center; color: #a23 !important; font-size: 12px; }
.wdp-maptools { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.wdp-geo-msg { color: var(--muted); font-size: 13px; }
.wdp-admin-map { height: 380px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 14px; z-index: 0; }
.wdp-media-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.wdp-media-box header { display: flex; justify-content: space-between; align-items: center; }
.wdp-media-box h3 { margin: 0 !important; }
.wdp-media-box h3 em { font-style: normal; font-size: 12px; color: var(--muted); font-family: -apple-system, sans-serif; }
.wdp-media-list { list-style: none; margin: 12px 0 0; padding: 0; }
.wdp-media-list:empty { display: none; }
.wdp-media-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wdp-media-item { position: relative; background: #faf8f4; border-radius: 12px; padding: 6px; margin: 0; cursor: move; }
.is-rows .wdp-media-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wdp-media-thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; display: block; }
.is-rows .wdp-media-thumb { flex: 1; min-width: 0; }
.wdp-media-thumb .file { display: block; font-size: 12px; padding: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdp-media-title { width: 100%; margin-top: 6px; min-height: 30px !important; font-size: 12px !important; padding: 4px 8px !important; }
.is-rows .wdp-media-title { width: 220px; margin: 0; }
.wdp-media-remove { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(11,11,11,.75); color: #fff; cursor: pointer; line-height: 1; font-size: 16px; }
.is-rows .wdp-media-remove { position: static; }
.is-grid .wdp-media-item:first-child:after { content: 'Primary'; position: absolute; left: 12px; top: 12px; background: var(--g); color: var(--k); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.wdp-media-placeholder { border: 2px dashed var(--g); border-radius: 12px; min-height: 120px; }
.wdp-feature-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.wdp-chip { cursor: pointer; position: relative; display: inline-block; }
.wdp-chip input { position: absolute; opacity: 0; left: 0; top: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wdp-chip span { display: inline-block; padding: 7px 14px; border-radius: 30px; border: 1px solid var(--line); background: #fff; transition: .15s; }
.wdp-chip input:checked + span { background: var(--k); border-color: var(--k); color: #fff; }
.wdp-chip input:focus-visible + span { outline: 2px solid var(--g); }
.wdp-add-feature { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.wdp-add-feature input { flex: 1; min-width: 200px; }
.wdp-slug { display: flex; align-items: center; border: 1px solid #ddd6c9; border-radius: 10px; overflow: hidden; background: #fff; }
.wdp-slug span { padding: 0 10px; color: var(--muted); background: #faf8f4; font-size: 12px; align-self: stretch; display: flex; align-items: center; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.wdp-slug input { border: 0 !important; box-shadow: none !important; }
.wdp-serp { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 3px; max-width: 640px; font-family: Arial, sans-serif; }
.wdp-serp .u { color: #202124; font-size: 12px; }
.wdp-serp .t { color: #1a0dab; font-size: 19px; }
.wdp-serp .d { color: #4d5156; font-size: 13px; }
.wdp-counter { color: var(--muted); font-weight: 400; font-size: 11px; }
.is-readonly input, .is-readonly select, .is-readonly textarea { pointer-events: none; opacity: .8; }

/* Settings */
.wdp-settings { margin: 0 28px; }
.wdp-settings h2 { margin-top: 10px; }
.wdp-settings-save { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; }
.wdp-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wdp-module { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.wdp-module div { display: flex; flex-direction: column; gap: 3px; }
.wdp-module span { color: var(--muted); font-size: 12px; }
.wdp-module em { font-style: normal; font-size: 11px; color: var(--gd); text-transform: uppercase; letter-spacing: .4px; }
.wdp-module.is-soon { opacity: .7; background: #faf8f4; }
.wdp-matrix td, .wdp-matrix th { text-align: center; }
.wdp-matrix td:first-child, .wdp-matrix th:first-child { text-align: left; }
.wdp-pre { background: #111; color: #eee; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 12px; max-width: 100%; }
.wdp-endpoints { list-style: none; padding: 0; }
.wdp-endpoints li { padding: 4px 0; }
.wdp-wrap code { background: #f3efe7; padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.wdp-roadmap { max-width: 720px; margin: 10px 28px !important; padding: 34px !important; }
.wdp-roadmap-badge { display: inline-block; background: #f3eee4; color: #7a6136; border-radius: 20px; padding: 4px 12px; font-size: 12px; margin-bottom: 14px; }
.wdp-roadmap h2 { font-size: 26px !important; }
.wdp-message { background: #faf8f4; border-radius: 12px; padding: 16px; line-height: 1.6; margin-bottom: 14px; }
.wdp-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0 0 16px; }
.wdp-dl dt { color: var(--muted); }
.wdp-dl dd { margin: 0; }
.wdp-enquiry-form .wdp-row { grid-template-columns: repeat(3, 1fr); }
input.small { width: 70px !important; }

@media (max-width: 1280px) { .wdp-stats { grid-template-columns: repeat(3, 1fr); } .wdp-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 1100px) { .wdp-editor { grid-template-columns: 1fr; } .wdp-editor-side { position: static; } .wdp-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 782px) {
	.wdp-topbar { top: 46px; flex-wrap: wrap; padding: 10px 14px; }
	.wdp-quicksearch { order: 3; max-width: none; flex-basis: 100%; }
	.wdp-pagehead, .wdp-grid-2, .wdp-grid-3, .wdp-stats, .wdp-tabs, .wdp-filters, .wdp-editor { padding-left: 12px; padding-right: 12px; }
	.wdp-pagehead { flex-direction: column; align-items: flex-start; }
	.wdp-grid-2, .wdp-grid-3, .wdp-modules { grid-template-columns: minmax(0, 1fr); }
	.wdp-agenda li a { white-space: normal; overflow-wrap: anywhere; }
	.wdp-agenda li > * { min-width: 0; }
	.wdp-add-feature { flex-wrap: wrap; }
	.wdp-add-feature input, .wdp-add-feature select { max-width: 100%; }
	.wdp-stats { grid-template-columns: 1fr 1fr; }
	.wdp-row { grid-template-columns: 1fr; }
	.wdp-field.span-2 { grid-column: auto; }
	.wdp-table { width: calc(100% - 24px); margin: 0 12px; display: block; overflow-x: auto; }
	.wdp-edtabs { position: static; overflow-x: auto; flex-wrap: nowrap; }
	.wdp-edtabs a { white-space: nowrap; }
}

/* ---------- Phase 2: CRM, applicants, matching, alerts ---------- */
.wdp-contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 0 28px; align-items: start; }
.wdp-contact-main, .wdp-contact-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wdp-contact-card .wdp-contact-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wdp-contact-card .wdp-avatar { width: 48px; height: 48px; font-size: 17px; }
.wdp-contact-head div { display: flex; flex-direction: column; }
.wdp-contact-head strong { font-family: Georgia, serif; font-weight: 400; font-size: 20px; }
.wdp-contact-head span { color: var(--muted); font-size: 12px; }
.wdp-contact-card .wdp-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.wdp-contact-notes { background: #faf8f4; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: #444; margin-top: 12px; }
.wdp-person { display: flex; align-items: center; gap: 12px; }
.wdp-person > div { display: flex; flex-direction: column; min-width: 0; }
.wdp-person .wdp-avatar { flex: none; font-size: 13px; }
.wdp-role { --pill: #5f5a52; }
.wdp-role-applicant { --pill: #A8844A; } .wdp-role-landlord { --pill: #2a6fb0; } .wdp-role-tenant { --pill: #2E7D5B; } .wdp-role-vendor { --pill: #7b4fb0; } .wdp-role-buyer { --pill: #b0602a; } .wdp-role-supplier { --pill: #555; }
.wdp-pill-yes { --pill: #2E7D5B; } .wdp-pill-active { --pill: #2E7D5B; } .wdp-pill-pending { --pill: #A8844A; } .wdp-pill-paused { --pill: #777; } .wdp-pill-unsubscribed { --pill: #a23; }
a.wdp-pill { text-decoration: none; }
.wdp-note-form { display: grid; gap: 10px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #f1ede5; }
.wdp-note-form textarea { width: 100%; border-radius: 12px; border-color: #ddd6c8; padding: 10px 12px; }
.wdp-note-form .wdp-btn { justify-self: start; }
.wdp-seg-sm { margin-bottom: 0; justify-self: start; }
.wdp-seg-sm span { padding: 6px 14px !important; font-size: 12px; }
.wdp-timeline-rich li { padding-bottom: 18px; }
.wdp-timeline-rich .wdp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g); margin-top: 5px; flex: none; position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.wdp-timeline-rich li.k-call .wdp-dot { background: #2a6fb0; } .wdp-timeline-rich li.k-email .wdp-dot, .wdp-timeline-rich li.k-alert_sent .wdp-dot { background: #2E7D5B; } .wdp-timeline-rich li.k-meeting .wdp-dot { background: #7b4fb0; } .wdp-timeline-rich li.k-enquiry .wdp-dot, .wdp-timeline-rich li.k-viewing_request .wdp-dot { background: var(--k); } .wdp-timeline-rich li.k-unsubscribed .wdp-dot { background: #a23; }
.wdp-timeline-rich li > div { flex: 1; min-width: 0; }
.wdp-timeline-rich .h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; flex-direction: row !important; }
.wdp-timeline-rich .h time { margin-left: auto; color: var(--muted); font-size: 12px; }
.wdp-timeline-rich p { margin: 4px 0 0; color: #444; line-height: 1.55; white-space: normal; }
.wdp-reqs > header { gap: 12px; }
.wdp-req { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.wdp-req-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.wdp-req-head > div { display: flex; flex-direction: column; gap: 4px; }
.wdp-req-head strong { font-size: 15px; }
.wdp-req-notes { margin: 10px 0 0; color: #555; font-size: 13px; }
.wdp-warn { color: #a5641a; font-style: normal; }
.wdp-matches h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
.wdp-matches ul { list-style: none; margin: 0; padding: 0; }
.wdp-match { margin: 0; border-top: 1px solid #f1ede5; }
.wdp-match label { display: flex; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer; }
.wdp-match input { flex: none; }
.wdp-match-img { width: 64px; height: 46px; border-radius: 8px; background: #eee center/cover no-repeat; flex: none; display: inline-block; }
.wdp-match-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wdp-match-body a { color: #111 !important; }
.wdp-match-body .wdp-muted { font-size: 12px; }
.wdp-score { flex: none; min-width: 48px; text-align: center; font-weight: 700; font-size: 13px; padding: 5px 8px; border-radius: 20px; }
.wdp-score-hi { background: #e7f3ec; color: #22603f; } .wdp-score-mid { background: #f6efe1; color: #8a6420; } .wdp-score-lo { background: #f1f0ee; color: #6b6760; }
.wdp-why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.wdp-why em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.wdp-why em.ok { background: #eef6f1; color: #2b6a4b; } .wdp-why em.no { background: #fbf0ec; color: #9a4a2e; } .wdp-why em.sent { background: #eef2f8; color: #2a5b8f; }
td.wdp-why { display: table-cell; } td.wdp-why em { display: inline-block; margin: 2px 2px 0 0; }
.wdp-send { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; align-items: end; }
.wdp-send textarea { width: 100%; border-radius: 12px; border-color: #ddd6c8; }
.wdp-nomatch { margin: 12px 0 0; }
.wdp-req-form { margin-top: 6px; }
.wdp-field-narrow { max-width: 160px; }
.wdp-field-wide { grid-column: span 2; }
.wdp-row-name { grid-template-columns: 110px 1fr 1fr; }
.wdp-feature-grid-sm { gap: 6px !important; }
.wdp-feature-grid-sm .wdp-chip span { font-size: 12px; padding: 5px 11px; }
.wdp-more { margin: 4px 0 14px; }
.wdp-more summary { cursor: pointer; font-weight: 500; font-size: 13px; color: #333; margin-bottom: 10px; }
.wdp-req-form[data-dept="sales"] .wdp-lettings-only, .wdp-req-form[data-dept="commercial"] .wdp-lettings-only { display: none; }
.wdp-applicant-matches tr.is-weak { opacity: .55; }
.wdp-right { text-align: right; white-space: nowrap; }
.wdp-owner h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.wdp-owner-card { background: #faf8f4; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; font-size: 13px; }
.wdp-owner-card span { color: var(--muted); }
.wdp-danger-zone form { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wdp-link-danger { background: none; border: 0; padding: 0; color: #a23 !important; cursor: pointer; font-size: 13px; text-decoration: underline; }
.wdp-stats-sm { grid-template-columns: repeat(4, 1fr); }
.wdp-stat strong.sm { font-size: 20px; }
.wdp-stat em { font-style: normal; color: var(--muted); font-size: 11px; }
.wdp-row-actions { white-space: nowrap; font-size: 12px; }
@media (max-width: 1200px) {
	.wdp-contact { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.wdp-stats-sm { grid-template-columns: 1fr 1fr; }
	.wdp-row-name { grid-template-columns: 1fr; }
	.wdp-send { grid-template-columns: 1fr; }
	.wdp-field-wide { grid-column: auto; }
}
.wdp-wrap > .wdp-table-wrap { margin: 0 28px; border-radius: 16px; }
.wdp-wrap > .wdp-panel.wdp-empty .wdp-btn { margin-top: 8px; }

/* Phase 3 — viewings, offers, progression, tasks, calendar, reports */
.wdp-panel-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.wdp-pill-v-requested { --pill: #A8844A; } .wdp-pill-v-confirmed { --pill: #2a6fb0; } .wdp-pill-v-completed { --pill: #2E7D5B; } .wdp-pill-v-cancelled { --pill: #777; } .wdp-pill-v-no_show { --pill: #a23; }
.wdp-pill-o-pending { --pill: #A8844A; } .wdp-pill-o-countered { --pill: #2a6fb0; } .wdp-pill-o-accepted { --pill: #2E7D5B; } .wdp-pill-o-rejected { --pill: #a23; } .wdp-pill-o-withdrawn { --pill: #777; }
.wdp-pill-high { --pill: #a23; }
.wdp-fb { font-weight: 500; font-size: 13px; }
.wdp-fb-very { color: #2E7D5B; } .wdp-fb-possibly { color: #A8844A; } .wdp-fb-not { color: #a23; }
.wdp-quote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--g); background: #faf8f4; border-radius: 0 10px 10px 0; font-style: italic; }
.wdp-contact-picker select { margin-bottom: 6px; }
.wdp-viewing-form .wdp-notice { margin: 0 0 14px; }

/* Progression */
.wdp-progress-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 0 28px 20px; }
.wdp-progress { display: block; padding: 14px 0; border-top: 1px solid #f1ede5; color: inherit !important; }
.wdp-progress.is-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color .2s, box-shadow .2s; }
.wdp-progress.is-card:hover { border-color: var(--g); box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.wdp-progress-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wdp-progress-top strong { font-weight: 600; }
.wdp-progress-top em { font-style: normal; font-family: Georgia, serif; font-size: 20px; color: var(--gd); }
.wdp-progress-meta, .wdp-progress-next { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.wdp-progress-next { color: #333; font-weight: 500; }
.wdp-progress-track { display: block; height: 6px; border-radius: 6px; background: #f1ede5; overflow: hidden; margin-top: 10px; }
.wdp-progress-track > span { display: block; height: 100%; background: var(--g); border-radius: 6px; transition: width .4s; }
.wdp-progress.is-completed .wdp-progress-track > span { background: #2E7D5B; }
.wdp-progress.is-fallen_through { opacity: .6; }
.wdp-progress.is-fallen_through .wdp-progress-track > span { background: #a23; }
.wdp-progress-lg { height: 10px; margin: 0 0 16px; }
.wdp-checklist { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: step; }
.wdp-checklist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1ede5; margin: 0; }
.wdp-checklist label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.wdp-checklist input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--gd); }
.wdp-checklist li.is-done label span { color: var(--muted); text-decoration: line-through; text-decoration-color: #cfc8ba; }
.wdp-checklist em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Tasks */
.wdp-tasklist { list-style: none; margin: 0 0 12px; padding: 0; }
.wdp-task { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f1ede5; margin: 0; }
.wdp-task-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfc8ba; display: grid; place-items: center; font-size: 11px; line-height: 1; color: #fff !important; margin-top: 1px; transition: .2s; }
.wdp-task-tick:hover { border-color: #2E7D5B; background: #e8f3ee; }
.wdp-task.is-done .wdp-task-tick { background: #2E7D5B; border-color: #2E7D5B; }
.wdp-task.is-high .wdp-task-tick { border-color: #d9a3a3; }
.wdp-task-body { min-width: 0; }
.wdp-task-body .title { color: #1a1a1a !important; font-weight: 500; }
.wdp-task.is-done .title { color: var(--muted) !important; text-decoration: line-through; }
.wdp-task-body .meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.wdp-task.is-overdue .wdp-task-tick { border-color: #a5641a; }
.wdp-quicktask .wdp-field { margin-bottom: 10px; }
.wdp-tasks-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }

/* Calendar */
.wdp-cal-bar { display: flex; align-items: center; gap: 10px; padding: 0 28px 14px; flex-wrap: wrap; }
.wdp-cal-bar h2 { margin: 0 6px; font-family: Georgia, serif; font-weight: 400; font-size: 22px; min-width: 170px; text-align: center; }
.wdp-tabs-inline { padding: 0; margin: 0 0 0 auto; border: 0; }
.wdp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 28px 14px; }
.wdp-cal-dow { background: #faf8f4; padding: 8px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.wdp-cal-day { background: #fff; min-height: 110px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wdp-cal-day.is-out { background: #fbfaf7; }
.wdp-cal-day .num { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.wdp-cal-day.is-today .num { color: var(--k); background: var(--g); border-radius: 10px; padding: 1px 7px; align-self: flex-start; }
.wdp-cal-ev { display: block; font-size: 11px; line-height: 1.35; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1a1a1a !important; border-left: 3px solid; }
.wdp-cal-ev b { font-weight: 600; }
.wdp-cal-ev.is-viewing { background: #eef4fa; border-color: #2a6fb0; }
.wdp-cal-ev.is-viewing.is-completed { background: #edf6f1; border-color: #2E7D5B; }
.wdp-cal-ev.is-task { background: #faf5ea; border-color: var(--g); }
.wdp-cal-ev.is-done { opacity: .5; text-decoration: line-through; }
.wdp-cal-ev.is-overdue { background: #fbefe4; border-color: #a5641a; }
.wdp-cal-legend { padding: 0 28px; display: flex; gap: 8px; }
.wdp-cal-legend .wdp-cal-ev { display: inline-block; }
.wdp-subscribe { margin: 20px 28px 0; }
.wdp-copy input { width: 100%; font-family: Menlo, Consolas, monospace; font-size: 12px; background: #faf8f4; margin-bottom: 8px; }

/* Dashboard agenda */
.wdp-agenda-h { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted) !important; margin: 18px 0 6px; }
.wdp-agenda { list-style: none; margin: 0 0 10px; padding: 0; }
.wdp-agenda li { display: flex; gap: 10px; padding: 6px 0 6px 10px; border-left: 3px solid var(--g); margin: 0 0 4px; background: #faf8f4; border-radius: 0 8px 8px 0; }
.wdp-agenda li.is-viewing { border-color: #2a6fb0; }
.wdp-agenda li.is-overdue { border-color: #a5641a; }
.wdp-agenda b { min-width: 42px; font-weight: 600; }
.wdp-agenda a { color: #1a1a1a !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Reports */
.wdp-reports .wdp-bar { grid-template-columns: 140px 1fr 40px; }
.wdp-reports .wdp-bar-track span { background: var(--g); }
.wdp-funnel-row { display: grid; grid-template-columns: 90px 1fr 40px 44px; gap: 10px; align-items: center; padding: 7px 0; }
.wdp-funnel-row .t { height: 22px; background: #f6f3ed; border-radius: 6px; overflow: hidden; }
.wdp-funnel-row .t span { display: block; height: 100%; background: linear-gradient(90deg, var(--g), var(--gd)); border-radius: 6px; }
.wdp-funnel-row .n { text-align: right; font-weight: 600; }
.wdp-funnel-row .c { font-size: 12px; color: var(--muted); text-align: right; }
.wdp-cols { display: flex; gap: 8px; align-items: flex-end; height: 180px; padding-top: 10px; }
.wdp-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.wdp-col .b { width: 100%; max-width: 46px; background: var(--g); border-radius: 6px 6px 2px 2px; }
.wdp-col .v { font-size: 12px; font-weight: 600; }
.wdp-col .m { font-size: 11px; color: var(--muted); white-space: nowrap; }

@media (max-width: 900px) {
	.wdp-tasks-layout { grid-template-columns: 1fr; }
	.wdp-cal { margin: 0 12px 14px; }
	.wdp-cal-day { min-height: 70px; }
	.wdp-cal-ev b { display: none; }
	.wdp-cal-bar, .wdp-progress-grid, .wdp-subscribe, .wdp-cal-legend { padding-left: 12px; padding-right: 12px; }
	.wdp-subscribe { margin: 20px 12px 0; }
}

/* Phase 4 — tenancies, compliance, maintenance */
.wdp-help { display: block; font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.wdp-pill-t-pending { --pill: #A8844A; } .wdp-pill-t-active { --pill: #2E7D5B; } .wdp-pill-t-notice { --pill: #a5641a; } .wdp-pill-t-ended { --pill: #777; }
.wdp-pill-r-paid { --pill: #2E7D5B; } .wdp-pill-r-part { --pill: #a5641a; } .wdp-pill-r-late { --pill: #a23; } .wdp-pill-r-upcoming { --pill: #2a6fb0; }
.wdp-pill-j-emergency { --pill: #a23; } .wdp-pill-j-urgent { --pill: #a5641a; } .wdp-pill-j-routine { --pill: #2a6fb0; }
.wdp-pill-js-reported { --pill: #A8844A; } .wdp-pill-js-quoting { --pill: #7a5bb0; } .wdp-pill-js-awaiting_approval { --pill: #a5641a; } .wdp-pill-js-in_progress { --pill: #2a6fb0; } .wdp-pill-js-completed { --pill: #2E7D5B; } .wdp-pill-js-cancelled { --pill: #777; }
.wdp-pill-q-accepted { --pill: #2E7D5B; } .wdp-pill-q-rejected { --pill: #777; }
.wdp-cert { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 6px; white-space: nowrap; color: #1a1a1a !important; }
.wdp-cert.is-valid { background: #e8f3ee; color: #24614a !important; }
.wdp-cert.is-expiring { background: #fbf1df; color: #8a5a12 !important; }
.wdp-cert.is-expired { background: #fbe9e9; color: #a23 !important; font-weight: 600; }
.wdp-cert.is-missing { background: #f3f0ea; color: #7a7670 !important; border: 1px dashed #d6cfc2; }
.wdp-matrix td, .wdp-matrix th { text-align: left; }
.wdp-certlist { list-style: none; margin: 0 0 16px; padding: 0; }
.wdp-certlist li { display: grid; grid-template-columns: 110px 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1ede5; margin: 0; }
.wdp-certlist li .wdp-cert { justify-self: start; }
.wdp-certlist em { font-style: normal; font-size: 12px; color: var(--muted); }
.wdp-certlist a { font-size: 13px; }
.wdp-ledger td { vertical-align: middle; }
.wdp-pay summary { list-style: none; cursor: pointer; }
.wdp-pay summary::-webkit-details-marker { display: none; }
.wdp-pay[open] summary { display: none; }
.wdp-pay form { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wdp-pay input[type=number] { width: 100px; }
.wdp-pay input[type=date] { width: 140px; }
.wdp-jobphotos { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.wdp-jobphotos img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; display: block; }
.wdp-jobnote textarea { width: 100%; margin-bottom: 8px; }
.wdp-jobnote .wdp-actions { justify-content: space-between; align-items: center; }
.wdp-jobtimeline { list-style: none; margin: 16px 0 0; padding: 0; }
.wdp-jobtimeline li { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); margin: 0; }
.wdp-jobtimeline li.is-public { border-left-color: var(--g); }
.wdp-jobtimeline .when { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.wdp-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 12px; }
.wdp-checks label { display: inline-flex !important; gap: 6px; align-items: center; font-weight: 400 !important; }
select[multiple] { min-height: 96px; }
@media (max-width: 900px) { .wdp-certlist li { grid-template-columns: 1fr auto; } .wdp-certlist em { grid-column: 1 / -1; } }
.wdp-grid-2 > div > .wdp-panel + .wdp-panel { margin-top: 20px; }

/* Phase 5 — marketing, templates, AI */
.wdp-mkt { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.wdp-mkt h3 { margin-top: 0; }
.wdp-mkt-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.wdp-qr { width: 200px; height: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.wdp-qr svg { width: 100%; height: 100%; display: block; }
.wdp-copyfield { width: 100%; font-family: Menlo, Consolas, monospace; font-size: 12px; background: #faf8f4; margin-top: 6px; }
.wdp-nowrap { white-space: nowrap; }
.wdp-inline-check { display: inline-flex !important; gap: 6px; align-items: center; font-weight: 400 !important; margin-top: 6px; font-size: 12px; }
.wdp-ai { border: 1px solid var(--line); background: linear-gradient(180deg, #fffaf1, #fff); border-radius: 14px; padding: 16px 18px; margin: 4px 0 20px; }
.wdp-ai-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 10px; }
.wdp-ai-head strong:before { content: '✦ '; color: var(--g); }
.wdp-ai-notes { width: 100%; margin-bottom: 10px; }
.wdp-ai-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.wdp-ai-result { margin-top: 12px; }
.wdp-ai-output { width: 100%; font-size: 14px; line-height: 1.6; }
.wdp-ai-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.wdp-ai-status { margin: 8px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; }
.wdp-ai.is-busy .wdp-ai-status:after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid var(--g); border-right-color: transparent; border-radius: 50%; animation: wdpspin .8s linear infinite; vertical-align: -2px; }
@keyframes wdpspin { to { transform: rotate(360deg); } }
.wdp-tplvars code { display: inline-block; margin: 0 4px 6px 0; background: #f3efe7; border-radius: 6px; padding: 2px 6px; font-size: 12px; }
.wdp-tplpreview { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.wdp-tplpreview .subj { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.wdp-tplpreview h3 { font-family: Georgia, serif; font-weight: 400; font-size: 20px; }
.wdp-tplpreview .sms { background: #eef4fa; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.wdp-composer textarea, .wdp-composer input[type=text] { width: 100%; }
.wdp-composer .wdp-seg { margin-bottom: 10px; }
@media (max-width: 900px) { .wdp-mkt { grid-template-columns: 1fr; } }

/* Phase 6 — portals, import, export */
.wdp-portal-grid, .wdp-export-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; padding: 0 28px 20px; }
.wdp-export-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wdp-portal-grid .wdp-panel, .wdp-export-grid .wdp-panel { margin: 0; }
.wdp-portalcard.is-on { border-color: #cfe5d9; }
.wdp-howto { margin: 0 0 14px 18px; padding: 0; }
.wdp-howto li { margin: 0 0 6px; color: #444; }
.wdp-seg.wdp-src-tabs { margin-bottom: 14px; }
.wdp-maptable td { vertical-align: middle; }
.wdp-maptable select { min-width: 220px; }
.wdp-ex { color: var(--muted); font-size: 12px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.wdp-import-layout { grid-template-columns: 1.5fr 1fr; align-items: start; }
.wdp-importrun { margin: 0 28px; }
.wdp-import-count { font-size: 15px; margin: 6px 0; }
.wdp-import-errors { margin: 10px 0 0 18px; color: #a23; font-size: 13px; }
@media (max-width: 900px) { .wdp-portal-grid, .wdp-export-grid { grid-template-columns: 1fr; padding: 0 12px 20px; } .wdp-import-layout { grid-template-columns: 1fr; } .wdp-importrun { margin: 0 12px; } }

/* Help & staff guide */
.wdp-help-link { color: #fff; text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; opacity: .85; white-space: nowrap; }
.wdp-help-link span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--g); color: var(--g); font-size: 12px; font-weight: 600; }
.wdp-help-link:hover, .wdp-help-link:focus { color: var(--g); opacity: 1; }
.wdp-help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 0 28px; align-items: start; }
.wdp-help-toc { position: sticky; top: 104px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.wdp-help-toc input { width: 100%; margin: 0 0 12px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.wdp-help-toc ol { margin: 0; padding: 0 0 0 20px; }
.wdp-help-toc li { margin: 0 0 8px; color: var(--muted); }
.wdp-help-toc a { color: #1a1a1a; text-decoration: none; }
.wdp-help-toc a:hover, .wdp-help-toc a.is-active { color: var(--gd); }
.wdp-help-toc li.is-hidden { display: none; }
.wdp-help-body { max-width: 820px; }
.wdp-help-section { margin: 0 0 18px; padding: 24px 28px; scroll-margin-top: 110px; }
.wdp-help-section h2 { font-size: 22px; margin: 0 0 12px; }
.wdp-help-section h3 { font-size: 15px; margin: 22px 0 8px; }
.wdp-help-section p, .wdp-help-section li { font-size: 14px; line-height: 1.6; }
.wdp-help-section .lead { font-size: 15px; color: #1a1a1a; border-left: 3px solid var(--g); padding: 2px 0 2px 12px; }
.wdp-help-section ul, .wdp-help-section ol { padding-left: 20px; }
.wdp-help-section ul { list-style: disc; }
.wdp-help-section .wdp-table-wrap { margin: 8px 0 12px; }
.wdp-help-note { background: #faf8f4; border-radius: 8px; padding: 10px 14px; color: #4a4741; }
.wdp-help-top { margin: 16px 0 0; font-size: 12px; }
.wdp-help-top a { color: var(--muted); }
.wdp-help-checks { list-style: none !important; padding-left: 0 !important; }
.wdp-help-checks li::before { content: "☐"; color: var(--gd); margin-right: 8px; }
.wdp-faq { border-top: 1px solid var(--line); padding: 10px 0; }
.wdp-faq summary { cursor: pointer; font-weight: 600; }
.wdp-faq p { margin: 8px 0 0; }
.wdp-help-figure { margin: 16px 0 8px; }
.wdp-help-figure svg { width: 100%; height: auto; display: block; font-size: 13px; }
.wdp-help-figure text { fill: #1a1a1a; }
.wdp-help-figure text.q { fill: var(--muted); font-size: 11.5px; }
.wdp-help-figure .box { fill: none; stroke: #b9b3a7; stroke-width: 1.25; }
.wdp-help-figure .main { fill: rgba(197, 160, 101, .14); stroke: var(--g); stroke-width: 2; }
.wdp-help-figure .lines path { stroke: #b9b3a7; stroke-width: 1.25; }
.wdp-help-figure .arrowhead { fill: #b9b3a7; }
.wdp-help-figure figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.wdp-help-empty { padding: 20px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 960px) {
	.wdp-help-layout { grid-template-columns: minmax(0, 1fr); padding: 0 12px; }
	.wdp-help-toc { position: static; }
	.wdp-help-section { padding: 18px 16px; scroll-margin-top: 190px; }
	.wdp-help-figure { overflow-x: auto; }
	.wdp-help-figure svg { min-width: 560px; }
	.wdp-help-link { order: 2; }
}

/* ===== Phase 7: branches, rooms, auctions ===== */
.wdp-wrap .wdp-branch-bar { margin-top: -6px; }
.wdp-wrap .wdp-staff-list { display: flex; flex-direction: column; gap: 12px; }
.wdp-wrap .wdp-staff-row { position: relative; display: grid; grid-template-columns: 22px 96px minmax(0, 1fr); gap: 14px; padding: 14px 40px 14px 12px; border: 1px solid #e6e1d6; border-radius: 14px; background: #fff; }
.wdp-wrap .wdp-staff-handle, .wdp-wrap .wdp-room-handle { cursor: grab; color: #aaa; font-size: 16px; line-height: 1; padding-top: 10px; user-select: none; letter-spacing: -3px; }
.wdp-wrap .wdp-staff-photo-btn { width: 96px; height: 96px; border-radius: 12px; border: 1px dashed #cfc7b6; background: #faf8f4; cursor: pointer; overflow: hidden; display: grid; place-items: center; padding: 0; color: #888; font-size: 12px; }
.wdp-wrap .wdp-staff-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wdp-wrap .wdp-staff-remove, .wdp-wrap .wdp-room-remove { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 20px; line-height: 1; color: #999; cursor: pointer; }
.wdp-wrap .wdp-staff-remove:hover, .wdp-wrap .wdp-room-remove:hover { color: #a00; }
.wdp-wrap .wdp-staff-fields .wdp-row + .wdp-row { margin-top: 8px; }
.wdp-wrap .wdp-hours-edit { border-collapse: collapse; margin: 6px 0 14px; }
.wdp-wrap .wdp-hours-edit th { text-align: left; font-weight: 600; padding: 6px 16px 6px 0; min-width: 100px; }
.wdp-wrap .wdp-hours-edit td { padding: 6px 8px 6px 0; }
.wdp-wrap .wdp-hours-edit input[type=time] { min-width: 110px; }
.wdp-wrap .wdp-panel > header .wdp-btn { margin-left: auto; }
.wdp-wrap .wdp-portal-codes input { width: 100%; }
.wdp-wrap .wdp-branch-image-preview img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 6px 0 8px; }
.wdp-wrap .wdp-codes { margin: 0; padding: 0; list-style: none; }
.wdp-wrap .wdp-codes li { margin: 0 0 6px; }
.wdp-wrap .wdp-codes code { font-size: 12px; }
.wdp-wrap .flag-branch { background: #eef1f6; color: #3a4a66; }
.wdp-wrap .flag-auction { background: #1a1a1a; color: #e6c98f; }
.wdp-wrap .wdp-due { color: #6b6b6b; }
.wdp-wrap .wdp-due.is-late, .wdp-wrap .wdp-auction-checklist .is-late { color: #b3261e; font-weight: 600; }

/* Rooms editor */
.wdp-wrap .wdp-rooms-edit { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.wdp-wrap .wdp-room-row { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 36px 10px 10px; border: 1px solid #e6e1d6; border-radius: 12px; background: #fff; }
.wdp-wrap .wdp-room-row.is-heading { background: #faf8f4; grid-template-columns: 22px minmax(0, 1fr); align-items: center; }
.wdp-wrap .wdp-room-row.is-heading .wdp-room-name { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.wdp-wrap .wdp-room-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.wdp-wrap .wdp-room-line .wdp-room-name { flex: 1 1 200px; }
.wdp-wrap .wdp-room-dim { width: 110px; }
.wdp-wrap .wdp-room-preview { color: #6b6b6b; font-style: normal; font-size: 12px; }
.wdp-wrap .wdp-room-row textarea { width: 100%; }

/* Auction editor */
.wdp-wrap .wdp-auction-fields[hidden] { display: none; }
.wdp-wrap .wdp-private label { color: #7a4b00; }
.wdp-wrap .wdp-auction-checklist { list-style: none; margin: 6px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wdp-wrap .wdp-auction-checklist li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wdp-wrap .wdp-auction-checklist li label { flex: 1 1 280px; display: flex; gap: 8px; align-items: center; margin: 0; }
.wdp-wrap .wdp-auction-checklist em { font-style: normal; font-size: 12px; color: #6b6b6b; }
@media (max-width: 782px) {
	.wdp-wrap .wdp-staff-row { grid-template-columns: 1fr; padding-right: 36px; }
	.wdp-wrap .wdp-staff-handle { display: none; }
}

/* ---------- Phase 8: inspections, accounts, applications ---------- */
.wdp-wrap .wdp-insp-rooms { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 16px; }
.wdp-wrap .wdp-insp-room { border: 1px solid #e6e1d6; border-radius: 14px; padding: 14px 16px; background: #fff; }
.wdp-wrap .wdp-insp-room-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 10px; }
.wdp-wrap .wdp-insp-room-head label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.wdp-wrap .wdp-insp-room-name { flex: 1 1 200px; font-weight: 600; font-size: 15px; }
.wdp-wrap .wdp-insp-room-remove { margin-left: auto; background: none; border: 0; font-size: 22px; line-height: 1; color: #999; cursor: pointer; padding: 2px 6px; }
.wdp-wrap .wdp-insp-room-remove:hover { color: #b32d2e; }
.wdp-wrap .wdp-insp-compare { background: #faf8f4; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 0 0 10px; }
.wdp-wrap .wdp-insp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.wdp-wrap .wdp-insp-photo { display: block; position: relative; font-size: 12px; }
.wdp-wrap .wdp-insp-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.wdp-wrap .wdp-insp-photo span { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #666; }
.wdp-wrap .wdp-insp-photo.is-removed img { opacity: .3; outline: 2px solid #b32d2e; }
.wdp-wrap .wdp-insp-upload { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-top: 6px; }
.wdp-wrap .wdp-insp-upload[data-count]:not([data-count=""])::after { content: attr(data-count); color: #2E7D5B; }
.wdp-wrap .wdp-insp-checks { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.wdp-wrap .wdp-insp-checks th { text-align: left; font-weight: 500; padding: 7px 8px 7px 0; border-bottom: 1px solid #eee; }
.wdp-wrap .wdp-insp-checks td { padding: 7px 0; border-bottom: 1px solid #eee; white-space: nowrap; }
.wdp-wrap .wdp-insp-checks td label { margin-right: 10px; }
.wdp-wrap .wdp-insp-total { font-size: 15px; }
.wdp-wrap .wdp-insp-actions { position: sticky; bottom: 0; background: #f6f4ef; padding: 12px 0; z-index: 5; }
.wdp-wrap .wdp-ledger td.num, .wdp-wrap .wdp-ledger th.num { text-align: right; white-space: nowrap; }
.wdp-wrap .wdp-ledger .neg { color: #8a2a2a; }
.wdp-wrap .wdp-steps { list-style: none; margin: 0; padding: 0; }
.wdp-wrap .wdp-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eee; }
.wdp-wrap .wdp-steps li.is-done .wdp-step-label { color: #2E7D5B; }
.wdp-wrap .wdp-steps li small { display: block; color: #888; }
.wdp-wrap .wdp-steps input[type=text] { width: 100%; }
.wdp-wrap .wdp-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wdp-wrap .wdp-doc { border: 1px solid #e6e1d6; border-radius: 12px; padding: 10px 12px; background: #fff; }
.wdp-wrap .wdp-doc.is-missing { border-style: dashed; background: #fffaf1; }
.wdp-wrap .wdp-doc strong { display: block; margin-bottom: 4px; }
.wdp-wrap .wdp-doc a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdp-wrap .wdp-hd-box { background: #faf8f4; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.wdp-wrap .wdp-hd-box .big { font-size: 22px; font-weight: 600; }
.wdp-wrap .wdp-afford { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.wdp-wrap .wdp-afford.ok { background: #e7f3ec; color: #24614a; }
.wdp-wrap .wdp-afford.low { background: #fbeeee; color: #8a2a2a; }
@media (max-width: 782px) {
	.wdp-wrap .wdp-steps li { grid-template-columns: 24px minmax(0, 1fr); }
	.wdp-wrap .wdp-steps li > :last-child { grid-column: 2; }
	.wdp-wrap .wdp-insp-room-remove { margin-left: 0; }
}

/* Invoicing (Phase 9) */
.wdp-inv-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 0 28px 18px; align-items: start; }
.wdp-inv-main > .wdp-panel + .wdp-panel, .wdp-inv-side > .wdp-panel + .wdp-panel { margin-top: 18px; }
.wdp-inv-side .wdp-panel h2 { font-size: 17px; }
.wdp-inv-side details > summary { cursor: pointer; list-style: none; }
.wdp-inv-side details > summary::-webkit-details-marker { display: none; }
.wdp-inv-side details[open] > summary { margin-bottom: 12px; }
.wdp-inv-side .wdp-row { grid-template-columns: 1fr 1fr; }
.wdp-inv-side form + form { margin-top: 12px; }
.wdp-btn-block { display: block; width: 100%; text-align: center; }
.wdp-wrap .num, .wdp-inv-table .num, .wdp-inv-lines .num { text-align: right; white-space: nowrap; }
.wdp-inv-totals { margin: 14px 0 0 auto; max-width: 320px; }
.wdp-inv-totals > div { display: flex; justify-content: space-between; padding: 5px 10px; }
.wdp-inv-totals .strong { background: #f6f3ec; font-weight: 600; border-radius: 8px; }
.wdp-inv-note { margin-top: 16px; white-space: pre-line; }
.wdp-inv-links { margin: 0; padding-left: 18px; }
.wdp-inv-links li { margin-bottom: 6px; }
.wdp-inv-history { max-height: 360px; overflow: auto; }
.wdp-table tfoot td { background: #faf8f4; border-top: 1px solid var(--line); }
.wdp-table tr.is-reversed td { opacity: .55; text-decoration: line-through; }
.wdp-table tr.is-reversed td .wdp-pill { text-decoration: none; }
.wdp-table td.is-late { color: #a23; font-weight: 600; }
.wdp-inv-filters label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.wdp-inv-form h3 { margin: 18px 0 8px; font-size: 14px; }
.wdp-inv-lines-edit { margin: 8px 0 14px; overflow-x: auto; }
.wdp-inv-lines-edit table { min-width: 760px; }
.wdp-inv-lines-edit td { padding: 6px 8px; vertical-align: top; }
.wdp-inv-lines-edit textarea { width: 100%; min-width: 240px; min-height: 38px; resize: vertical; }
.wdp-inv-lines-edit input[type=number] { width: 100px; text-align: right; }
.wdp-inv-lines-edit input.q { width: 70px; }
.wdp-inv-lines-edit .t { padding-top: 14px; font-weight: 600; }
.wdp-inv-remove { font-size: 20px !important; line-height: 1; text-decoration: none !important; padding-top: 8px !important; }
.wdp-inv-contact input[type=text] { width: 100%; }
.wdp-inv-payform .wdp-pay-alloc { width: 110px; text-align: right; }
.wdp-link { background: none; border: 0; padding: 0; color: #2271b1; cursor: pointer; text-decoration: underline; font-size: inherit; }
@media (max-width: 1100px) { .wdp-inv-detail { grid-template-columns: minmax(0, 1fr); padding: 0 12px 18px; } }
.wdp-inv-side textarea, .wdp-inv-side input[type=text] { width: 100%; }
