.ddw-account-page{padding:52px 0 78px;background:#f6f6f2;color:#17373b}
.ddw-account-page *{box-sizing:border-box}
.ddw-account-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px;align-items:start}
.ddw-account-shell>.ddw-account-sidebar-col{width:auto!important;max-width:none!important;padding:0!important}
.ddw-account-nav{position:sticky;top:96px;overflow:hidden;border:1px solid #dce5e1;border-radius:16px;background:#fff;box-shadow:0 9px 28px rgba(20,58,61,.06)}
.ddw-account-nav-home{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px;padding:11px 14px;border-radius:9px;background:#17484d;color:#fff!important;font-size:12px;font-weight:800;text-decoration:none!important}
.ddw-account-nav-home:hover{background:#225b60;color:#fff!important}
.ddw-account-nav-title{display:flex;align-items:center;gap:10px;padding:0 18px 13px;color:#17373b;font-size:13px;font-weight:800;border-bottom:1px solid #edf1ee}
.ddw-account-nav-title i{font-size:19px;color:#d4572c}
.ddw-account-nav nav{padding:9px}
.ddw-account-nav nav a,.ddw-account-logout-form button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:#526762;font-size:12px;font-weight:650;text-align:left;text-decoration:none!important;transition:.18s ease}
.ddw-account-nav nav a i,.ddw-account-logout-form button i{width:18px;color:#31585a;text-align:center;font-size:14px}
.ddw-account-nav nav a:hover,.ddw-account-nav nav a.active{background:#eef4f1;color:#17484d}
.ddw-account-nav nav a.active{font-weight:800}
.ddw-account-logout-form{margin:0;padding:0 9px 10px;border-top:1px solid #edf1ee}
.ddw-account-logout-form button{margin-top:9px;color:#9d4545;cursor:pointer}
.ddw-account-logout-form button i{color:#9d4545}
.ddw-account-logout-form button:hover{background:#fff1f1}
.ddw-account-main{min-width:0}
.ddw-account-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px;padding:24px 26px;border:1px solid #dce5e1;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#f1f6f3 100%);box-shadow:0 9px 28px rgba(20,58,61,.05)}
.ddw-account-eyebrow{display:block;margin-bottom:6px;color:#d4572c;font-size:10px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.ddw-account-hero h1{margin:0 0 7px;color:#17373b;font-size:30px;line-height:1.08;font-weight:850}
.ddw-account-hero p{max-width:660px;margin:0;color:#687974;font-size:13px;line-height:1.55}
.ddw-account-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ddw-account-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 13px;border:1px solid #17484d;border-radius:8px;background:#17484d;color:#fff!important;font-size:11px;font-weight:800;text-decoration:none!important;white-space:nowrap}
.ddw-account-btn:hover{background:#225b60;border-color:#225b60;color:#fff!important}
.ddw-account-btn.is-secondary{background:#fff;color:#17484d!important}
.ddw-account-btn.is-secondary:hover{background:#edf4f1;color:#17484d!important}
.ddw-account-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.ddw-account-stat{padding:17px 18px;border:1px solid #dce5e1;border-radius:13px;background:#fff}
.ddw-account-stat span{display:block;margin-bottom:5px;color:#76857f;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}
.ddw-account-stat strong{display:block;color:#17373b;font-size:25px;line-height:1;font-weight:850}
.ddw-account-section{margin-bottom:18px;padding:20px;border:1px solid #dce5e1;border-radius:15px;background:#fff;box-shadow:0 6px 20px rgba(20,58,61,.035)}
.ddw-account-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.ddw-account-section-head h2{margin:0;color:#17373b;font-size:18px;font-weight:850}
.ddw-account-section-head p{margin:4px 0 0;color:#778680;font-size:11px}
.ddw-account-section-head>a{color:#17484d;font-size:11px;font-weight:800;text-decoration:none}
.ddw-account-property-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ddw-account-property{display:grid;grid-template-columns:138px minmax(0,1fr);min-height:145px;overflow:hidden;border:1px solid #e0e7e3;border-radius:12px;background:#fff}
.ddw-account-property-media{position:relative;min-height:145px;background:#eaf0ec}
.ddw-account-property-media img{display:block;width:100%;height:100%;min-height:145px;object-fit:cover}
.ddw-account-property-placeholder{display:grid;place-items:center;width:100%;height:100%;min-height:145px;color:#729087;background:#eaf0ec;font-size:30px}
.ddw-account-property-status{position:absolute;top:9px;left:9px;padding:4px 8px;border-radius:99px;background:#e7f3ed;color:#28634f;font-size:9px;font-weight:850}
.ddw-account-property-status.is-inactive{background:#fae8e8;color:#9c3c3c}
.ddw-account-property-status.is-pending{background:#fff1dc;color:#8c5d1d}
.ddw-account-property-body{display:flex;flex-direction:column;min-width:0;padding:14px}
.ddw-account-property-body h3{margin:0 0 5px;color:#17373b;font-size:14px;line-height:1.3;font-weight:850}
.ddw-account-property-location{margin:0 0 10px;color:#71817c;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ddw-account-property-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:auto;color:#455f5f;font-size:10.5px;font-weight:700}
.ddw-account-property-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px;padding-top:10px;border-top:1px solid #edf1ee}
.ddw-account-property-actions a{color:#17484d;font-size:10.5px;font-weight:800;text-decoration:none}
.ddw-account-views-list{display:grid;gap:8px}
.ddw-account-view-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;border:1px solid #e3e9e5;border-radius:9px;background:#fbfcfb}
.ddw-account-view-row strong{display:block;color:#17373b;font-size:12px}
.ddw-account-view-row small{color:#80908a;font-size:10px}
.ddw-account-view-row a{color:#17484d;font-size:10.5px;font-weight:800;text-decoration:none;white-space:nowrap}
.ddw-account-empty{display:grid;place-items:center;min-height:170px;padding:24px;border:1px dashed #cfdad5;border-radius:12px;background:#fafcfb;text-align:center}
.ddw-account-empty i{display:block;margin-bottom:10px;color:#78948c;font-size:28px}
.ddw-account-empty h3{margin:0 0 5px;color:#17373b;font-size:15px}
.ddw-account-empty p{max-width:440px;margin:0 0 13px;color:#788781;font-size:11px;line-height:1.5}
@media(max-width:1199px){.ddw-account-shell{grid-template-columns:225px minmax(0,1fr)}.ddw-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ddw-account-property-grid{grid-template-columns:1fr}}
@media(max-width:991px){.ddw-account-page{padding-top:32px}.ddw-account-shell{grid-template-columns:1fr}.ddw-account-nav{position:static}.ddw-account-nav nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ddw-account-hero{flex-direction:column}.ddw-account-actions{justify-content:flex-start}}
@media(max-width:575px){.ddw-account-page{padding-bottom:50px}.ddw-account-hero{padding:20px}.ddw-account-hero h1{font-size:25px}.ddw-account-stats{grid-template-columns:1fr 1fr}.ddw-account-property{grid-template-columns:1fr}.ddw-account-property-media{height:175px}.ddw-account-nav nav{grid-template-columns:1fr}.ddw-account-actions{width:100%}.ddw-account-btn{flex:1}.ddw-account-view-row{align-items:flex-start;flex-direction:column}}
.ddw-account-stats.is-customer{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:767px){.ddw-account-stats.is-customer{grid-template-columns:1fr}}

/* Unified account pages: favorites, support, profile and security */
.ddw-account-stat strong small{font-size:13px;font-weight:800;color:#61736f}
.ddw-account-inline-form{display:inline;margin:0}
.ddw-account-inline-form button{padding:0;border:0;background:transparent;color:#9b4f45;font-size:10.5px;font-weight:800;cursor:pointer}
.ddw-account-inline-form button:hover{color:#7f382f}
.ddw-account-alert{display:flex;align-items:center;gap:10px;margin-bottom:18px;padding:12px 14px;border:1px solid #d9e5df;border-radius:11px;background:#fff;color:#405f5c;font-size:12px;font-weight:700}
.ddw-account-alert i{font-size:17px}
.ddw-account-alert.is-success{border-color:#cfe5d8;background:#f1f8f4;color:#2d654d}
.ddw-account-alert.is-error{border-color:#efcccc;background:#fff4f4;color:#914646}
.ddw-account-form{margin:0}
.ddw-account-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ddw-account-form-grid.is-single{grid-template-columns:1fr}
.ddw-account-field{display:flex;flex-direction:column;min-width:0;gap:7px}
.ddw-account-field.is-full{grid-column:1/-1}
.ddw-account-field label{margin:0;color:#27494b;font-size:11px;font-weight:800}
.ddw-account-field label span{color:#d4572c}
.ddw-account-field input,.ddw-account-field textarea,.ddw-account-field select{display:block;width:100%;min-height:46px;padding:11px 13px;border:1px solid #cfdbd5;border-radius:9px;background:#fff;color:#17373b;font:inherit;font-size:12px;line-height:1.4;outline:0;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.ddw-account-field textarea{min-height:120px;resize:vertical}
.ddw-account-field input[type=file]{padding:8px 10px;background:#fbfcfb}
.ddw-account-field input:focus,.ddw-account-field textarea:focus,.ddw-account-field select:focus{border-color:#5d807a;box-shadow:0 0 0 3px rgba(23,72,77,.08);background:#fff}
.ddw-field-help{color:#7d8c87;font-size:10px;line-height:1.45}
.ddw-field-error{display:block;color:#a44343;font-size:10px;font-weight:700}
.ddw-field-error-block{margin-top:10px}
.ddw-account-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:17px;border-top:1px solid #edf1ee}
.ddw-account-form-actions button{cursor:pointer}
.ddw-account-btn-full{width:100%}
.ddw-account-title-with-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ddw-account-title-with-status h1{margin-bottom:0}

.ddw-ticket-list{display:grid;gap:10px}
.ddw-ticket-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid #e0e7e3;border-radius:11px;background:#fbfcfb}
.ddw-ticket-id{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:#eef4f1;color:#17484d;font-size:11px;font-weight:850}
.ddw-ticket-main{min-width:0}
.ddw-ticket-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px}
.ddw-ticket-title-line h3{margin:0;color:#17373b;font-size:13px;font-weight:850}
.ddw-ticket-meta{display:flex;gap:12px;flex-wrap:wrap;color:#788882;font-size:10px}
.ddw-ticket-meta span{display:inline-flex;align-items:center;gap:5px}
.ddw-ticket-status{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:850;white-space:nowrap}
.ddw-ticket-status.is-pending{background:#fff2dc;color:#8b5b1c}
.ddw-ticket-status.is-open{background:#e7f3ed;color:#28634f}
.ddw-ticket-status.is-closed{background:#f1f1ef;color:#66726e}
.ddw-ticket-action{display:inline-flex;align-items:center;gap:7px;color:#17484d!important;font-size:10.5px;font-weight:800;text-decoration:none!important;white-space:nowrap}
.ddw-ticket-action:hover{color:#d4572c!important}

.ddw-support-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(285px,.75fr);gap:18px;align-items:start}
.ddw-support-side{display:grid;gap:18px;position:sticky;top:96px}
.ddw-support-side .ddw-account-section{margin-bottom:0}
.ddw-message-card{margin-bottom:12px;padding:15px;border:1px solid #e0e7e3;border-radius:11px;background:#fbfcfb}
.ddw-message-card.is-admin{border-color:#cedfd7;background:#f1f7f4}
.ddw-message-author{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.ddw-message-author img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#edf2ef}
.ddw-message-author strong{display:block;color:#17373b;font-size:11px;font-weight:850}
.ddw-message-author span{display:block;margin-top:2px;color:#87948f;font-size:9.5px}
.ddw-message-body{color:#425d5a;font-size:11.5px;line-height:1.65;word-break:break-word}
.ddw-message-body p:last-child{margin-bottom:0}
.ddw-attachment-link{display:inline-flex;align-items:center;gap:6px;margin-top:11px;padding:7px 9px;border-radius:7px;background:#eef4f1;color:#17484d!important;font-size:10px;font-weight:800;text-decoration:none!important}
.ddw-support-note{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px dashed #cfdbd5;border-radius:9px;background:#fafcfb;color:#667b76;font-size:10.5px;line-height:1.5}
.ddw-support-note i{margin-top:2px;color:#d4572c}
.ddw-ticket-details{display:grid;gap:0;margin:0}
.ddw-ticket-details>div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #edf1ee}
.ddw-ticket-details>div:last-child{border-bottom:0}
.ddw-ticket-details dt{margin:0;color:#7a8984;font-size:9.5px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.ddw-ticket-details dd{margin:0;color:#27494b;font-size:10.5px;font-weight:700;word-break:break-word}

.ddw-profile-top{display:flex;align-items:center;gap:18px;margin-bottom:22px;padding:17px;border:1px solid #e1e8e4;border-radius:12px;background:#fbfcfb}
.ddw-profile-photo{position:relative;flex:0 0 auto;width:92px;height:92px}
.ddw-profile-photo img{display:block;width:92px;height:92px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 0 0 1px #dbe5e0}
.ddw-profile-photo label{position:absolute;right:-1px;bottom:2px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#17484d;color:#fff;cursor:pointer;box-shadow:0 5px 15px rgba(23,72,77,.2)}
.ddw-profile-summary{min-width:0}
.ddw-profile-summary h3{margin:0 0 3px;color:#17373b;font-size:17px;font-weight:850}
.ddw-profile-summary p{margin:0 0 9px;color:#6e817c;font-size:11px}
.ddw-profile-summary small{display:block;margin-top:8px;color:#82908b;font-size:9.5px}
.ddw-profile-badges{display:flex;gap:7px;flex-wrap:wrap}
.ddw-profile-badges span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#eef4f1;color:#365f5d;font-size:9.5px;font-weight:800}

.ddw-password-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.ddw-password-layout .ddw-account-section{margin-bottom:0}
.ddw-security-card{padding:21px;border:1px solid #dce5e1;border-radius:15px;background:linear-gradient(145deg,#17484d 0%,#214f53 100%);color:#fff;box-shadow:0 9px 28px rgba(20,58,61,.08)}
.ddw-security-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:15px;border-radius:11px;background:rgba(255,255,255,.11);font-size:20px}
.ddw-security-card h3{margin:0 0 11px;color:#fff;font-size:16px;font-weight:850}
.ddw-security-card ul{margin:0;padding-left:17px;color:#e1ece8;font-size:10.5px;line-height:1.7}

@media(max-width:991px){.ddw-support-layout,.ddw-password-layout{grid-template-columns:1fr}.ddw-support-side{position:static}.ddw-ticket-row{grid-template-columns:48px minmax(0,1fr)}.ddw-ticket-action{grid-column:2}.ddw-account-form-grid{grid-template-columns:1fr}.ddw-account-field.is-full{grid-column:auto}}
@media(max-width:575px){.ddw-profile-top{align-items:flex-start;flex-direction:column}.ddw-ticket-row{grid-template-columns:1fr}.ddw-ticket-id{width:auto;height:auto;display:inline-flex;padding:7px 9px}.ddw-ticket-action{grid-column:auto}.ddw-account-form-actions{flex-direction:column}.ddw-account-form-actions .ddw-account-btn{width:100%}.ddw-ticket-details>div{grid-template-columns:1fr;gap:4px}}

/* DDW owner portal: owner/customer screens stay visually outside the admin backoffice. */
.ddw-owner-workspace { overflow: visible; }
.ddw-owner-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 22px;
    border: 1px solid #e4e9e7;
    border-radius: 16px;
    background: #f8faf9;
}
.ddw-owner-filters .ddw-account-field { margin: 0; }
.ddw-owner-filter-actions { display: flex; gap: 9px; grid-column: 1 / -1; justify-content: flex-end; }
.ddw-owner-property-list { display: grid; gap: 14px; }
.ddw-owner-property-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    border: 1px solid #e1e7e4;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.ddw-owner-property-image { min-height: 165px; background: #eef2f0; }
.ddw-owner-property-image img { width: 100%; height: 100%; min-height: 165px; object-fit: cover; display: block; }
.ddw-owner-property-body { padding: 18px; min-width: 0; }
.ddw-owner-property-heading { display: flex; justify-content: space-between; gap: 18px; }
.ddw-owner-property-type { display: block; color: #687976; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.ddw-owner-property-heading h3 { margin: 0 0 6px; font-size: 20px; color: #0d292c; }
.ddw-owner-property-heading p { margin: 0; color: #62706e; font-size: 14px; }
.ddw-owner-property-heading p i { margin-right: 6px; }
.ddw-owner-property-statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-content: flex-start; }
.ddw-owner-status { border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ddw-owner-status.is-active, .ddw-owner-status.is-approved { background: #e7f5ec; color: #22623e; }
.ddw-owner-status.is-inactive { background: #edf0ef; color: #596563; }
.ddw-owner-status.is-pending { background: #fff4d8; color: #8a6514; }
.ddw-owner-status.is-rejected { background: #fde9e7; color: #9c3930; }
.ddw-owner-property-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0ef; color: #53615f; font-size: 13px; }
.ddw-owner-property-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.ddw-owner-property-actions form { margin: 0; }
.ddw-owner-danger-btn { border: 1px solid #e7c8c5; background: #fff; color: #a33f37; border-radius: 9px; padding: 10px 13px; font-weight: 700; }
.ddw-owner-danger-btn i { margin-right: 6px; }
.ddw-owner-pagination { margin-top: 22px; }
.ddw-owner-editor .card { border: 1px solid #e2e8e5; border-radius: 14px; box-shadow: none; }
.ddw-owner-editor .card-header { background: #f8faf9; border-bottom: 1px solid #e8ecea; }
.ddw-owner-editor .form-control,
.ddw-owner-editor .form-select { min-height: 44px; border-color: #d7dfdc; border-radius: 9px; }
.ddw-owner-editor textarea.form-control { min-height: 110px; }
.ddw-owner-editor .btn-primary { background: #123f43; border-color: #123f43; }
.ddw-owner-form-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; border-top: 1px solid #e5eae8; margin-top: 20px; padding-top: 20px; }
.ddw-company-logo img { object-fit: contain; background: #fff; }
.ddw-account-alert.is-error { background: #fff0ee; color: #8d3029; border-color: #f0c9c5; }
@media (max-width: 1199px) {
    .ddw-owner-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ddw-owner-filters { grid-template-columns: 1fr; }
    .ddw-owner-property-card { grid-template-columns: 1fr; }
    .ddw-owner-property-image { min-height: 190px; max-height: 230px; }
    .ddw-owner-property-heading { flex-direction: column; }
    .ddw-owner-property-statuses { justify-content: flex-start; }
    .ddw-owner-filter-actions, .ddw-owner-form-footer { justify-content: stretch; }
    .ddw-owner-filter-actions .ddw-account-btn, .ddw-owner-form-footer .ddw-account-btn { flex: 1 1 auto; justify-content: center; }
}
