*{box-sizing:border-box}body{color:#171717;background:#f4f1ea;margin:0;font-family:Arial,Helvetica,sans-serif}button,input{font-family:inherit}.login-page{background:linear-gradient(135deg,#111,#2b2418,#b6924b);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{background:#fff;border-radius:24px;width:100%;max-width:430px;padding:34px;box-shadow:0 30px 80px #00000038}.brand{color:#b6924b;letter-spacing:1px;margin-bottom:18px;font-weight:900}.login-card h1{margin:0 0 10px;font-size:30px}.login-card p{color:#666;margin-bottom:24px}.login-card label{margin:16px 0 8px;font-weight:700;display:block}.login-card input{border:1px solid #ddd;border-radius:12px;width:100%;padding:14px}.login-card button,.primary{color:#fff;cursor:pointer;background:#111;border:none;border-radius:12px;margin-top:22px;padding:14px 22px;font-weight:800}.layout{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.sidebar h1{margin:0 0 34px;font-size:24px;line-height:1.05}.sidebar button{color:#eee;text-align:left;cursor:pointer;background:0 0;border:none;border-bottom:1px solid #ffffff14;width:100%;padding:14px 0;font-size:15px;display:block}.sidebar button:hover,.sidebar .active{color:#d6b66c}.topbar{justify-content:space-between;margin-bottom:32px;display:flex}.topbar h2{margin:0 0 10px;font-size:32px}.topbar p{color:#555;margin:0}.logout{color:#fff;cursor:pointer;background:#111;border:none;border-radius:12px;height:42px;padding:0 18px}.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;display:grid}.card,.panel{background:#fff;border-radius:20px;padding:24px;box-shadow:0 16px 45px #0000000f}.card strong{margin-top:12px;font-size:34px;display:block}.panel{margin-top:28px}.panel h3{margin-top:0}table{border-collapse:collapse;width:100%}th,td{text-align:left;vertical-align:middle;border-bottom:1px solid #eee;padding:14px}.badge{color:#fff;background:#111;border-radius:99px;padding:6px 10px;font-size:12px;font-weight:800}.thumb{object-fit:cover;border-radius:10px;width:76px;height:52px}.muted{color:#888}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.form-grid label span{margin-bottom:8px;font-weight:700;display:block}.form-grid input{border:1px solid #ddd;border-radius:12px;width:100%;padding:13px}.hint{color:#555;background:#f7f3eb;border-radius:14px;margin-top:22px;padding:16px}@media (max-width:900px){.layout{grid-template-columns:1fr}.sidebar{display:none}.grid,.form-grid{grid-template-columns:1fr}.content{padding:20px}}.action-row{margin-bottom:20px}.form-head{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.form-head h3{margin:0}.form-grid select,.form-grid input,.full-input,.textarea{background:#fff;border:1px solid #ddd;border-radius:12px;width:100%;padding:13px}.full-label{margin:18px 0 8px;font-weight:700;display:block}.textarea{resize:vertical;min-height:140px}.check{align-items:center;gap:10px;margin:20px 0;font-weight:700;display:flex}.actions{gap:8px;display:flex}.actions button,.secondary{color:#fff;cursor:pointer;background:#111;border:none;border-radius:10px;padding:9px 12px}.actions .danger{background:#9b1c1c}.secondary{background:#555}.photo-panel{background:#f7f3eb;border-radius:18px;margin-top:28px;padding:22px}.photo-head{justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;display:flex}.photo-head h3{margin:0 0 6px}.photo-head p{color:#666;margin:0}.upload-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#111;border-radius:12px;justify-content:center;align-items:center;padding:12px 18px;font-weight:800;display:inline-flex}.upload-btn input{display:none}.empty-gallery{color:#666;background:#fff;border:1px dashed #aaa;border-radius:14px;padding:20px}.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.photo-card{background:#fff;border-radius:14px;position:relative;overflow:hidden;box-shadow:0 10px 28px #00000014}.photo-card img{object-fit:cover;width:100%;height:150px;display:block}.cover-badge{color:#fff;background:#111;border-radius:99px;padding:6px 10px;font-size:12px;font-weight:800;position:absolute;top:10px;left:10px}.photo-actions{gap:8px;padding:10px;display:flex}.photo-actions button{color:#fff;cursor:pointer;background:#111;border:none;border-radius:10px;flex:1;padding:9px}.photo-actions .danger{background:#9b1c1c}@media (max-width:900px){.photo-head{flex-direction:column;align-items:flex-start}.photo-grid{grid-template-columns:1fr}}.photo-panel{border:1px solid #eee}.photo-counter{color:#777;margin-top:8px;font-size:14px}.upload-btn{min-width:170px}.photo-card img{height:180px}.photo-card:hover{transition:all .2s;transform:translateY(-2px)}.photo-actions button{font-size:12px;font-weight:800}.cover-badge{color:#111;background:#b6924b}.photo-tip{color:#666;margin-top:14px;font-size:13px}.whatsapp-admin{color:#fff;background:#1f8f4d;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:800;text-decoration:none;display:inline-block}.admin-chat-wrap{grid-template-columns:260px 1fr;gap:20px;display:grid}.admin-chat-sessions,.admin-chat-main{background:#f7f3eb;border-radius:18px;padding:18px}.session-btn{cursor:pointer;text-align:left;background:#fff;border:none;border-radius:12px;width:100%;margin-bottom:8px;padding:12px;font-weight:800;display:block}.active-session{color:#fff;background:#111}.admin-chat-messages{background:#fff;border-radius:14px;height:360px;margin-bottom:14px;padding:14px;overflow-y:auto}.admin-msg{border-radius:10px;margin-bottom:8px;padding:10px}.admin-msg.user{background:#e8f3ff}.admin-msg.admin{text-align:right;background:#d1e7dd}.admin-msg.bot{background:#f1f1f1}.admin-chat-input{gap:10px;display:flex}.admin-chat-input input{border:1px solid #ddd;border-radius:12px;flex:1;padding:14px}.admin-chat-input button{color:#fff;background:#111;border:none;border-radius:12px;padding:0 18px;font-weight:900}@media (max-width:900px){.admin-chat-wrap{grid-template-columns:1fr}}.session-btn{justify-content:space-between;align-items:center;display:flex;position:relative}.unread-badge{color:#fff;background:#e11d48;border-radius:999px;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 7px;font-size:12px;display:inline-flex}.admin-wrap{background:#f4f0e8!important;grid-template-columns:260px 1fr!important;min-height:100vh!important;display:grid!important}.sidebar{color:#fff!important;background:#111!important;padding:24px 18px!important}.sidebar h2{margin-bottom:30px!important}.sidebar button{color:#fff!important;text-align:left!important;cursor:pointer!important;background:0 0!important;border:none!important;border-bottom:1px solid #333!important;width:100%!important;padding:14px 0!important;display:block!important}.sidebar button.active{color:#d6b15f!important;font-weight:800!important}.content{padding:34px!important}.panel{background:#fff!important;border-radius:20px!important;padding:24px!important;box-shadow:0 20px 50px #00000014!important}@media (max-width:900px){.admin-wrap{grid-template-columns:1fr!important}}.admin-chat-topbar{justify-content:space-between!important;align-items:center!important;gap:12px!important;display:flex!important}.active-client-name{color:#555!important;margin-left:10px!important;font-size:14px!important;font-weight:600!important}.close-ticket-btn{color:#fff!important;cursor:pointer!important;background:#b91c1c!important;border:none!important;border-radius:10px!important;padding:10px 14px!important;font-weight:800!important}.sidebar a{color:#fff!important;text-align:left!important;cursor:pointer!important;border-bottom:1px solid #333!important;width:100%!important;padding:14px 0!important;text-decoration:none!important;display:block!important}.sidebar a.active{color:#d6b15f!important;font-weight:800!important}.lead-form-box,.lead-list-box{background:#f7f3eb;border-radius:18px;margin-top:20px;padding:20px}.lead-form-box input,.lead-form-box textarea{border:1px solid #ddd;border-radius:12px;width:100%;margin-bottom:10px;padding:13px;display:block}.lead-form-box button,.lead-list-box button{color:#fff;cursor:pointer;background:#111;border:none;border-radius:10px;padding:11px 16px;font-weight:800}.lead-list-box table{border-collapse:collapse;width:100%}.lead-list-box th,.lead-list-box td{text-align:left;border-bottom:1px solid #ddd;padding:12px}.sidebar .active-link{color:#fff!important;text-align:left!important;cursor:pointer!important;border-bottom:1px solid #333!important;width:100%!important;padding:14px 0!important;text-decoration:none!important;display:block!important}.admin-title-row{justify-content:space-between!important;align-items:center!important;gap:16px!important;margin-bottom:20px!important;display:flex!important}.primary-admin-btn,.small-admin-btn{color:#fff!important;cursor:pointer!important;background:#111!important;border:none!important;border-radius:12px!important;padding:12px 16px!important;font-weight:800!important}.small-admin-btn{padding:8px 12px!important}.property-form-grid{grid-template-columns:repeat(3,1fr)!important;gap:14px!important;display:grid!important}.property-form-grid label,.full-admin-field{flex-direction:column!important;gap:6px!important;margin-bottom:14px!important;font-weight:800!important;display:flex!important}.property-form-grid input,.property-form-grid select,.full-admin-field input,.full-admin-field textarea{border:1px solid #ddd!important;border-radius:12px!important;width:100%!important;padding:13px!important}.full-admin-field textarea{min-height:110px!important}.admin-checkbox{align-items:center!important;gap:8px!important;margin:14px 0!important;font-weight:800!important;display:flex!important}@media (max-width:900px){.property-form-grid{grid-template-columns:1fr!important}}.property-images-box{background:#f7f3eb!important;border-radius:16px!important;margin:18px 0!important;padding:18px!important}.property-images-box input[type=file]{margin:10px 0!important;display:block!important}.property-images-grid{grid-template-columns:repeat(4,1fr)!important;gap:14px!important;margin-top:14px!important;display:grid!important}.property-image-card{background:#fff!important;border-radius:14px!important;padding:10px!important;box-shadow:0 8px 22px #00000014!important}.property-image-card img{object-fit:cover!important;border-radius:10px!important;width:100%!important;height:110px!important;margin-bottom:8px!important;display:block!important}.property-image-card strong{color:#fff!important;background:#16a34a!important;border-radius:999px!important;margin-bottom:8px!important;padding:4px 8px!important;font-size:12px!important;display:inline-block!important}.property-image-card div{flex-wrap:wrap!important;gap:6px!important;display:flex!important}.danger-admin-btn{color:#fff!important;cursor:pointer!important;background:#b91c1c!important;border:none!important;border-radius:10px!important;padding:8px 12px!important;font-weight:800!important}@media (max-width:900px){.property-images-grid{grid-template-columns:repeat(2,1fr)!important}}.settings-banner-grid{grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px;display:grid}.settings-banner-card{background:#fff;border-radius:16px;padding:12px;box-shadow:0 8px 22px #00000014}.settings-banner-card img{object-fit:cover;border-radius:12px;width:100%;height:150px;margin-bottom:10px;display:block}.settings-banner-card button{color:#fff;cursor:pointer;background:#b91c1c;border:none;border-radius:10px;padding:10px 14px;font-weight:800}@media (max-width:900px){.settings-banner-grid{grid-template-columns:1fr}}.admin-filter-row{grid-template-columns:minmax(220px,1fr) 180px 180px auto auto;align-items:center;gap:10px;margin:18px 0 20px;display:grid}.admin-filter-row input,.admin-filter-row select{background:#fff;border:1px solid #ddd;border-radius:10px;width:100%;padding:12px}.admin-filter-row strong{white-space:nowrap;color:#555}@media (max-width:900px){.admin-filter-row{grid-template-columns:1fr}}.selected-files-box{background:#fffaf0;border:1px solid #eadfca;border-radius:14px;margin:14px 0;padding:14px}.selected-files-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.selected-files-head p{color:#555;margin:0;font-weight:700}.selected-previews-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;display:grid}.selected-preview-card{background:#fff;border:1px solid #e7dcc5;border-radius:12px;overflow:hidden}.selected-preview-card img{object-fit:cover;background:#eee;width:100%;height:92px;display:block}.selected-preview-card strong,.selected-preview-card span,.selected-preview-card em{padding:6px 8px 0;font-size:12px;display:block}.selected-preview-card strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.selected-preview-card span{color:#666;padding-bottom:8px}.selected-preview-card em{color:#b42318;padding-bottom:8px;font-style:normal;font-weight:800}.selected-preview-card.invalid{background:#fff4f2;border-color:#b42318}.lead-notes-input{resize:vertical;border:1px solid #ddd;border-radius:10px;width:220px;min-height:74px;padding:10px;font-family:inherit}.lead-actions{flex-wrap:wrap;gap:6px;max-width:270px;display:flex}.primary-admin-btn.compact,.lead-actions .small-admin-btn,.lead-actions .danger-admin-btn{white-space:nowrap;border-radius:10px;margin:0;padding:9px 12px;line-height:1}.lead-notes-cell{white-space:pre-wrap;max-width:220px}.admin-modal-backdrop{z-index:1000;background:#00000094;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.admin-modal{background:#fff;border-radius:18px;width:min(760px,100%);max-height:92vh;padding:24px;overflow:auto;box-shadow:0 24px 90px #00000047}.attendance-summary{background:#f7f3eb;border-radius:14px;gap:8px;margin:14px 0 18px;padding:14px;display:grid}.attendance-summary p{margin:0}.attendance-actions{flex-wrap:wrap;gap:10px;margin-top:18px;display:flex}@media (max-width:900px){.lead-actions{max-width:none}.admin-modal{padding:18px}}.lead-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0;display:grid}.lead-stat-card{text-align:left;cursor:pointer;background:#fffaf0;border:1px solid #e5dccb;border-radius:14px;padding:16px}.lead-stat-card span{color:#666;margin-bottom:8px;font-weight:800;display:block}.lead-stat-card strong{color:#111;font-size:30px;display:block}.lead-stat-card:hover{border-color:#b6924b}@media (max-width:900px){.lead-stats-grid{grid-template-columns:1fr 1fr}}.settings-banner-card.inactive{opacity:.55}.settings-banner-meta{color:#555;justify-content:space-between;gap:10px;margin:10px 0;font-size:13px;display:flex}.settings-banner-actions{flex-wrap:wrap;gap:8px;display:flex}.settings-banner-actions .small-admin-btn,.settings-banner-actions .danger-admin-btn{border-radius:10px;margin:0;padding:9px 12px}.settings-field{margin-bottom:10px;display:block}.settings-field span{color:#222;margin:0 0 6px;font-weight:800;display:block}.settings-field input{width:100%}.settings-help-text{color:#666;margin:-4px 0 18px}.settings-section{background:#f7f3eb;border-radius:18px;margin-top:22px;padding:22px}.settings-section h3{margin-top:0}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.settings-field.wide{grid-column:1/-1}.settings-toggle{margin:12px 0}.settings-logo-preview{margin-top:16px}.settings-logo-preview p{margin:0 0 8px;font-weight:800}.settings-logo-preview img{background:#111;border-radius:12px;max-width:220px;padding:12px}.settings-upload-button{color:#fff;cursor:pointer;background:#111;border-radius:10px;justify-content:center;align-items:center;min-height:42px;padding:0 16px;font-weight:800;display:inline-flex}.settings-upload-button input{display:none}@media (max-width:900px){.settings-grid{grid-template-columns:1fr}}.chat-panel-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.chat-panel-head strong{color:#fff;background:#111;border-radius:999px;justify-content:center;align-items:center;min-width:30px;height:30px;display:inline-flex}.session-btn strong,.session-btn span,.session-btn small{display:block}.session-btn span{color:#777;margin-top:4px;font-size:12px}.session-btn small{color:#999;white-space:nowrap;text-overflow:ellipsis;margin-top:6px;overflow:hidden}.chat-top-actions{flex-wrap:wrap;gap:8px;display:flex}.admin-msg{gap:4px;display:grid}.admin-msg span{display:block}.admin-msg small{color:#777;font-size:11px}.lead-list-box td:nth-child(3){white-space:pre-wrap;max-width:360px;line-height:1.35}.chat-view-switch{grid-template-columns:1fr 1fr;gap:6px;margin:0 0 8px;display:grid}.chat-view-switch button{color:#111;cursor:pointer;background:#fff;border:0;border-radius:10px;padding:10px;font-weight:800}.chat-view-switch button.active{color:#fff;background:#111}.crm-form-box{background:#f4f1ea;border-radius:16px;margin:18px 0 22px;padding:20px}.crm-form-box h3{margin:0 0 14px}.crm-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.crm-form-grid label{gap:7px;font-weight:800;display:grid}.crm-form-grid input,.crm-form-grid select,.crm-form-box textarea{background:#fff;border:1px solid #d9d9d9;border-radius:12px;width:100%;padding:12px}.crm-form-box textarea{resize:vertical;min-height:90px}.crm-actions{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}@media (max-width:900px){.crm-form-grid{grid-template-columns:1fr}}.dashboard-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0;display:grid}.dashboard-stat-card{text-align:left;color:#111;cursor:pointer;background:#f4f1ea;border:1px solid #e4dfd4;border-radius:16px;width:100%;min-height:118px;padding:18px;text-decoration:none;display:block}.dashboard-stat-card span,.dashboard-stat-card small{color:#555;font-weight:700;display:block}.dashboard-stat-card strong{margin:8px 0;font-size:34px;line-height:1;display:block}.dashboard-action-row{flex-wrap:wrap;gap:10px;margin:8px 0 24px;display:flex}.dashboard-link-btn{align-items:center;text-decoration:none;display:inline-flex}.dashboard-columns{grid-template-columns:1fr 1fr;gap:18px;display:grid}.dashboard-box{background:#f4f1ea;border-radius:16px;padding:18px}.dashboard-box h3{margin:0}.dashboard-box a{color:#111;font-weight:800}.dashboard-row{border-top:1px solid #ded8cc;grid-template-columns:1fr auto;gap:14px;padding:14px 0;display:grid}.dashboard-row:first-of-type{border-top:0}.dashboard-row strong,.dashboard-row span,.dashboard-row em,.dashboard-row small{display:block}.dashboard-row span,.dashboard-row small{color:#555}.dashboard-row em{font-style:normal;font-weight:800}@media (max-width:900px){.dashboard-stat-grid,.dashboard-columns{grid-template-columns:1fr}}.dashboard-top-actions{flex-wrap:wrap;gap:10px;display:flex}.dashboard-chart-box{color:#fff;background:#111;border-radius:16px;grid-template-columns:minmax(220px,.75fr) 1.25fr;align-items:center;gap:18px;margin:0 0 24px;padding:20px;display:grid}.dashboard-chart-box h3{margin:0 0 8px}.dashboard-chart-box p{color:#d6d1c6;margin:0}.lead-bar-chart{gap:12px;display:grid}.lead-bar-chart div{grid-template-columns:140px 42px 1fr;align-items:center;gap:12px;display:grid}.lead-bar-chart span,.lead-bar-chart strong{font-weight:800}.lead-bar-chart em{background:#d6b66c;border-radius:999px;min-width:4px;height:14px;display:block}@media (max-width:900px){.dashboard-chart-box,.lead-bar-chart div{grid-template-columns:1fr}}.blog-form-grid{grid-template-columns:2fr 2fr 1fr;gap:14px;display:grid}.blog-form-grid label{gap:7px;font-weight:800;display:grid}.blog-form-grid input,.blog-form-grid select{background:#fff;border:1px solid #d9d9d9;border-radius:12px;width:100%;padding:12px}.blog-preview-card{background:#fff;border-radius:14px;grid-template-columns:160px 1fr;align-items:center;gap:14px;margin-top:14px;padding:12px;display:grid}.blog-preview-card img{object-fit:cover;border-radius:10px;width:160px;height:96px}.blog-preview-card strong,.blog-preview-card span{display:block}.blog-preview-card span{color:#555;margin-top:6px}@media (max-width:900px){.blog-form-grid,.blog-preview-card{grid-template-columns:1fr}.blog-preview-card img{aspect-ratio:16/9;width:100%;height:auto}}.admin-user-box{color:#fff;background:#181818;border:1px solid #2b2b2b;border-radius:12px;gap:5px;margin:18px 0 16px;padding:14px;display:grid}.admin-user-box span,.admin-user-box small{color:#d6b66c;font-size:12px;font-weight:800}.admin-user-box strong{word-break:break-word;font-size:15px;line-height:1.25}.admin-user-box button{color:#111;cursor:pointer;background:#d6b66c;border:0;border-radius:10px;margin-top:8px;padding:10px 12px;font-weight:900}.broker-mode .content .danger-admin-btn,.broker-mode .content button[onclick*=delete],.broker-mode .content button[onclick*=duplicate],.broker-mode .content button[onclick*=newProperty],.broker-mode .content .property-edit-actions,.broker-mode .content .upload-box,.broker-mode .content input[type=file],.broker-mode .content table td:last-child .danger-admin-btn{display:none!important}.broker-mode .content table td:last-child button{margin-bottom:4px}.broker-mode .content table td:last-child button:nth-child(n+2),.broker-mode .dashboard-top-actions,.broker-mode .dashboard-action-row .primary-admin-btn,.broker-mode .content .danger-admin-btn,.broker-mode .content button.danger-admin-btn,.broker-mode .content button[onclick*=duplicate],.broker-mode .content input[type=file],.broker-mode .admin-title-row .primary-admin-btn,.broker-mode .broker-hidden-action,.broker-mode button[onclick*=duplicateProperty],.broker-mode button[onclick*=deleteProperty],.broker-mode .property-images-box input[type=file],.broker-mode .selected-files-box,.broker-mode .admin-checkbox{display:none!important}.broker-mode .property-form-grid input,.broker-mode .property-form-grid select,.broker-mode .full-admin-field input,.broker-mode .full-admin-field textarea{pointer-events:none!important;color:#111!important;background:#f4f1ea!important;border-color:#ddd!important}.broker-mode .property-images-box button,.broker-mode .admin-title-row .primary-admin-btn,.broker-mode .broker-hidden-action{display:none!important}.lead-compact-stats{grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;margin:18px 0;display:grid}.lead-compact-stats div{background:#f5f1e9;border:1px solid #ded6c6;border-radius:10px;padding:12px 14px}.lead-compact-stats span{color:#555;font-size:13px;font-weight:700;display:block}.lead-compact-stats strong{margin-top:4px;font-size:28px;line-height:1;display:block}.compact-lead-form{margin-bottom:20px}.lead-form-grid{grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px;display:grid}.compact-lead-form input,.compact-lead-form select,.compact-lead-form textarea{border:1px solid #ddd;border-radius:9px;width:100%;min-height:40px;padding:10px 12px}.compact-lead-form textarea{resize:vertical;min-height:58px;margin-top:10px}.lead-actions-row{gap:10px;margin-top:10px;display:flex}.compact-leads-table{table-layout:fixed;font-size:14px}.compact-leads-table th,.compact-leads-table td{vertical-align:top;padding:12px 10px}.compact-leads-table td strong,.compact-leads-table td span,.compact-leads-table td small{display:block}.lead-message-cell,.lead-notes-cell{white-space:normal;overflow-wrap:anywhere;max-width:320px}.compact-leads-table .lead-actions{flex-wrap:wrap;gap:6px;display:flex}.compact-leads-table .small-admin-btn,.compact-leads-table .danger-admin-btn{border-radius:8px;padding:8px 10px;font-size:12px}@media (max-width:900px){.lead-compact-stats,.lead-form-grid{grid-template-columns:1fr}}.broker-mode .compact-leads-table .lead-actions .small-admin-btn{display:inline-flex!important}.broker-mode .broker-lead-form select:nth-of-type(3){pointer-events:none;background:#f4f1ea}.broker-mode .property-images-grid .small-admin-btn,.broker-mode .property-images-grid .danger-admin-btn,.broker-mode .property-images-box input[type=file],.broker-mode .selected-files-box,.broker-mode .property-images-box>button,.broker-mode .admin-checkbox,.broker-mode .broker-hidden-action{display:none!important}.broker-mode .property-form-grid input,.broker-mode .property-form-grid select,.broker-mode .full-admin-field input,.broker-mode .full-admin-field textarea{pointer-events:none!important;color:#111!important;background:#f4f1ea!important}.sound-toggle-btn{margin-bottom:10px}.chat-history-filter{gap:8px;margin:10px 0 12px;display:grid}.chat-history-filter label{color:#111;gap:5px;font-size:13px;font-weight:800;display:grid}.chat-history-filter input{border:1px solid #ddd;border-radius:8px;min-height:38px;padding:8px 10px}.session-btn em{color:#d8b55d;margin-top:2px;font-size:12px;font-style:normal;display:block}@media (max-width:1100px){.admin-wrap{min-height:100vh;display:block!important}.sidebar{z-index:50;white-space:nowrap;border-bottom:1px solid #ffffff1f;align-items:center;gap:10px;top:0;overflow:auto hidden;width:100%!important;height:auto!important;min-height:auto!important;padding:14px 16px!important;display:flex!important;position:sticky!important}.sidebar h2{flex:none;margin:0 14px 0 0!important;font-size:20px!important}.admin-user-box{flex:0 0 220px;margin:0 8px 0 0!important;padding:10px 12px!important}.admin-user-box button{margin-top:8px!important}.sidebar>button,.sidebar>a{flex:none;min-width:max-content;border:1px solid #ffffff1f!important;border-radius:10px!important;padding:10px 12px!important}.content{width:100%!important;margin-left:0!important;padding:24px!important}.panel{border-radius:18px!important;width:100%!important;max-width:none!important;padding:24px!important}.admin-title-row{align-items:flex-start!important;gap:12px!important}.dashboard-stat-grid,.dashboard-stats-grid,.lead-compact-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dashboard-action-row,.dashboard-top-actions,.chat-top-actions,.lead-actions-row{flex-wrap:wrap!important}table{min-width:760px}.panel table,.lead-list-box table{display:table}.lead-list-box,.settings-section,.dashboard-box{overflow-x:auto}.admin-chat-wrap{grid-template-columns:1fr!important}.admin-chat-sessions{min-height:auto!important;max-height:none!important}.admin-chat-main{min-height:560px}}@media (max-width:640px){.sidebar{gap:8px;padding:12px!important}.sidebar h2{font-size:18px!important}.admin-user-box{flex-basis:190px;font-size:13px}.content{padding:18px 12px!important}.panel{border-radius:18px!important;padding:22px!important}.admin-title-row{grid-template-columns:1fr!important;display:grid!important}.admin-title-row h1{font-size:30px!important;line-height:1.05!important}.dashboard-top-actions,.dashboard-action-row,.admin-filter-row,.lead-actions-row{width:100%;grid-template-columns:1fr!important;display:grid!important}.dashboard-top-actions button,.dashboard-action-row button,.dashboard-action-row a,.admin-filter-row button,.admin-filter-row input,.admin-filter-row select{width:100%!important}.dashboard-stat-grid,.dashboard-stats-grid,.lead-compact-stats,.lead-form-grid,.settings-grid,.property-form-grid{grid-template-columns:1fr!important}.dashboard-stat-card{min-height:112px}.dashboard-stat-card strong,.lead-compact-stats strong{font-size:34px!important}.dashboard-chart-box{grid-template-columns:1fr!important}.lead-bar-chart div{grid-template-columns:110px 36px 1fr!important}.admin-chat-topbar{gap:12px;grid-template-columns:1fr!important;display:grid!important}.chat-top-actions{grid-template-columns:1fr!important;display:grid!important}.admin-chat-messages{min-height:360px!important;max-height:440px!important}.admin-chat-input{grid-template-columns:1fr!important;display:grid!important}}.admin-mobile-menu-btn,.admin-mobile-backdrop{display:none}@media (max-width:1100px){.admin-mobile-menu-btn{z-index:90;color:#fff;background:#0f0f0f;border:0;border-radius:12px;justify-content:center;align-items:center;min-height:42px;padding:0 16px;font-weight:900;position:fixed;top:14px;left:14px;box-shadow:0 10px 30px #00000038;display:inline-flex!important}.admin-mobile-backdrop{z-index:70;background:#00000061;border:0;position:fixed;inset:0;display:block!important}.admin-wrap{min-height:100vh;display:block!important}.sidebar{transition:transform .22s;transform:translate(-105%);box-shadow:18px 0 45px #00000047;z-index:80!important;white-space:normal!important;width:min(86vw,320px)!important;height:100vh!important;min-height:100vh!important;padding:72px 18px 24px!important;display:block!important;position:fixed!important;top:0!important;left:0!important;overflow:hidden auto!important}.mobile-menu-open .sidebar{transform:translate(0)}.sidebar h2{margin:0 0 18px!important;font-size:24px!important}.admin-user-box{width:100%!important;margin:0 0 18px!important;padding:14px!important}.sidebar>button,.sidebar>a{text-align:left!important;border:0!important;border-bottom:1px solid #ffffff1f!important;border-radius:0!important;width:100%!important;min-width:0!important;margin:0!important;padding:13px 0!important;display:block!important}.content{width:100%!important;margin-left:0!important;padding:76px 18px 24px!important}}@media (max-width:640px){.admin-mobile-menu-btn{min-height:40px;padding:0 14px;top:10px;left:10px}.content{padding:66px 10px 18px!important}.panel{border-radius:18px!important;padding:22px!important}}.admin-wrap{transition:background .2s,color .2s}.admin-theme-toggle{z-index:5;color:#fff;cursor:pointer;background:#111;border:0;border-radius:999px;padding:12px 16px;font-weight:900;position:absolute;top:24px;right:320px;box-shadow:0 10px 24px #0000001f}.panel{position:relative}.admin-theme-dark{color:#f5f1e8;background:#0f0f0f}.admin-theme-dark .content{background:#141414}.admin-theme-dark .panel,.admin-theme-dark .settings-section,.admin-theme-dark .stat-card,.admin-theme-dark .dashboard-card,.admin-theme-dark .admin-card,.admin-theme-dark .lead-card{color:#f5f1e8!important;background:#1e1e1e!important;border-color:#d6b15f3d!important}.admin-theme-dark .admin-theme-toggle{color:#111;background:#d6b15f}.admin-theme-dark a{color:#f5f1e8}@media (max-width:900px){.admin-theme-toggle{width:fit-content;margin:0 0 16px;position:static}}.theme-toggle-side{color:#111;cursor:pointer;background:#d6b15f;border:1px solid #d6b15f59;border-radius:10px;width:100%;margin-top:10px;padding:10px 12px;font-weight:900}.admin-theme-dark .panel,.admin-theme-dark .stat-card,.admin-theme-dark .settings-section,.admin-theme-dark .admin-card,.admin-theme-dark .lead-card,.admin-theme-dark .broker-card,.admin-theme-dark .property-card,.admin-theme-dark .chat-shell,.admin-theme-dark .chat-panel,.admin-theme-dark .list-panel{color:#f5f1e8!important;background:#1f1f1f!important;border-color:#d6b15f40!important}.admin-theme-dark table,.admin-theme-dark th,.admin-theme-dark td{color:#f5f1e8!important;border-color:#ffffff1f!important}.admin-theme-dark .theme-toggle-side{color:#111;background:#fff}.login-brand,.admin-sidebar-brand{align-items:center;gap:10px;display:flex}.login-brand img,.admin-sidebar-brand img{object-fit:contain;flex:none;width:38px;height:38px}.admin-sidebar-brand span,.login-brand span{min-width:0}.dashboard-brand-editor{background:#f4f0e8;border:1px solid #0000001f;border-radius:14px;grid-template-columns:minmax(220px,1.2fr) minmax(180px,1fr) minmax(180px,1fr) auto auto;align-items:end;gap:14px;margin:18px 0 22px;padding:18px;display:grid}.dashboard-brand-editor h3{margin:0 0 4px}.dashboard-brand-editor p{color:#555;margin:0}.dashboard-brand-editor label{gap:6px;font-weight:800;display:grid}.dashboard-brand-editor input{background:#fff;border:1px solid #d8d3ca;border-radius:10px;min-height:42px;padding:0 12px}.dashboard-brand-editor img{object-fit:contain;background:#111;border-radius:10px;width:52px;height:52px;padding:6px}@media (max-width:1000px){.dashboard-brand-editor{grid-template-columns:1fr;align-items:stretch}.dashboard-brand-editor img{width:48px;height:48px}}.admin-identity-box{background:#ffffff0a;border:1px solid #ffffff1f;border-radius:12px;gap:10px;margin:0 14px 18px;padding:14px;display:grid}.admin-identity-box strong{color:#e0bb57;font-size:13px}.admin-identity-box label{color:#fff;gap:4px;font-size:12px;font-weight:800;display:grid}.admin-identity-box span{color:#e0bb57}.admin-identity-box input{color:#111;background:#fff;border:1px solid #ffffff2e;border-radius:8px;width:100%;min-height:34px;padding:0 9px;font-size:12px}.admin-identity-box button{color:#111;cursor:pointer;background:#e0bb57;border:0;border-radius:9px;min-height:36px;font-weight:900}.admin-identity-box{display:none!important}.settings-identity-card{border:2px solid #e0bb5759}.settings-identity-card .small-admin-btn{margin-top:12px;margin-right:10px}.admin-sidebar-brand{align-items:center!important;gap:12px!important;line-height:1.1!important;display:flex!important}.admin-sidebar-brand img{object-fit:contain!important;flex:none!important;width:42px!important;height:42px!important}.admin-sidebar-brand span{overflow-wrap:anywhere!important;min-width:0!important}.compact-leads-table{table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;width:100%!important}.compact-leads-table th{color:#111!important;border-bottom:1px solid #0000001f!important;padding:12px 10px!important;font-size:13px!important}.compact-leads-table td{vertical-align:top!important;border-bottom:1px solid #0000001a!important;padding:12px 10px!important;font-size:13px!important;line-height:1.2!important}.compact-leads-table th:first-child,.compact-leads-table td:first-child{width:14%!important}.compact-leads-table th:nth-child(2),.compact-leads-table td:nth-child(2){width:22%!important}.compact-leads-table th:nth-child(3),.compact-leads-table td:nth-child(3){width:12%!important}.compact-leads-table th:nth-child(4),.compact-leads-table td:nth-child(4){width:14%!important}.compact-leads-table th:nth-child(5),.compact-leads-table td:nth-child(5){width:13%!important}.compact-leads-table th:nth-child(6),.compact-leads-table td:nth-child(6){width:15%!important}.compact-leads-table th:nth-child(7),.compact-leads-table td:nth-child(7){width:10%!important}.lead-message-cell{white-space:pre-wrap!important;word-break:break-word!important;background:#ffffff8c!important;border:1px solid #0000001a!important;border-radius:8px!important;min-height:46px!important;max-height:46px!important;padding:8px 10px!important;line-height:1.25!important;overflow-y:auto!important}.lead-notes-cell{white-space:pre-wrap!important;word-break:break-word!important;background:#ffffff59!important;border:1px solid #00000014!important;border-radius:8px!important;max-height:58px!important;padding:8px 10px!important;line-height:1.25!important;overflow-y:auto!important}.compact-leads-table .lead-actions{grid-template-columns:1fr 1fr!important;align-items:stretch!important;gap:6px!important;min-width:150px!important;display:grid!important}.compact-leads-table .lead-actions .small-admin-btn,.compact-leads-table .lead-actions .danger-admin-btn,.compact-leads-table td:last-child .small-admin-btn,.compact-leads-table td:last-child .danger-admin-btn{text-align:center!important;border-radius:10px!important;justify-content:center!important;align-items:center!important;width:100%!important;min-width:0!important;min-height:34px!important;padding:0 10px!important;font-size:12px!important;line-height:1!important;display:inline-flex!important}.compact-leads-table .lead-actions .danger-admin-btn,.compact-leads-table td:last-child .danger-admin-btn{grid-column:1/-1!important}.compact-leads-table td strong{font-size:13px!important}.compact-leads-table td small,.compact-leads-table td span{font-size:12px!important}.admin-theme-dark .lead-message-cell,.admin-theme-dark .lead-notes-cell{background:#ffffff0f!important;border-color:#ffffff24!important}@media (max-width:1100px){.compact-leads-table{min-width:980px!important}.lead-list-box{overflow-x:auto!important}}body.dark-theme .crm-form-box,body.theme-dark .crm-form-box,body.dark .crm-form-box,.dark-theme .crm-form-box,.theme-dark .crm-form-box,.dark .crm-form-box,body.dark-theme .crm-form-box h3,body.dark-theme .crm-form-box label,body.dark-theme .crm-form-box p,body.dark-theme .crm-form-box span,body.theme-dark .crm-form-box h3,body.theme-dark .crm-form-box label,body.theme-dark .crm-form-box p,body.theme-dark .crm-form-box span,body.dark .crm-form-box h3,body.dark .crm-form-box label,body.dark .crm-form-box p,body.dark .crm-form-box span,.dark-theme .crm-form-box h3,.dark-theme .crm-form-box label,.dark-theme .crm-form-box p,.dark-theme .crm-form-box span,.theme-dark .crm-form-box h3,.theme-dark .crm-form-box label,.theme-dark .crm-form-box p,.theme-dark .crm-form-box span,.dark .crm-form-box h3,.dark .crm-form-box label,.dark .crm-form-box p,.dark .crm-form-box span{color:#111!important}body.dark-theme input,body.dark-theme select,body.dark-theme textarea,body.theme-dark input,body.theme-dark select,body.theme-dark textarea,body.dark input,body.dark select,body.dark textarea,.dark-theme input,.dark-theme select,.dark-theme textarea,.theme-dark input,.theme-dark select,.theme-dark textarea,.dark input,.dark select,.dark textarea{color:#111!important;background:#fff!important;border-color:#d8d0c0!important}body.dark-theme input::placeholder,body.dark-theme textarea::placeholder,body.theme-dark input::placeholder,body.theme-dark textarea::placeholder,body.dark input::placeholder,body.dark textarea::placeholder,.dark-theme input::placeholder,.dark-theme textarea::placeholder,.theme-dark input::placeholder,.theme-dark textarea::placeholder,.dark input::placeholder,.dark textarea::placeholder{color:#666!important}body.dark-theme table,body.theme-dark table,body.dark table,.dark-theme table,.theme-dark table,.dark table{color:inherit}body.dark-theme .crm-form-box table,body.theme-dark .crm-form-box table,body.dark .crm-form-box table,.dark-theme .crm-form-box table,.theme-dark .crm-form-box table,.dark .crm-form-box table{color:#111!important}.admin-shell.dark,.admin-shell.dark .admin-main,.admin-shell.dark .crm-page,.admin-shell.dark .crm-section,.admin-shell.dark .crm-panel,.admin-shell.dark .crm-card,.admin-shell.dark .crm-table,.admin-shell.dark .crm-list{color:#f8f4ea}.admin-shell.dark .stat-card,.admin-shell.dark .crm-form-box,.admin-shell.dark .crm-table-card,.admin-shell.dark .dashboard-card,.admin-shell.dark .recent-card,.admin-shell.dark .lead-message-box,.admin-shell.dark .photo-manager,.admin-shell.dark .photo-card,.admin-shell.dark .settings-block,.admin-shell.dark .content-block,.admin-shell.dark .stat-card *,.admin-shell.dark .crm-form-box *,.admin-shell.dark .crm-table-card *,.admin-shell.dark .dashboard-card *,.admin-shell.dark .recent-card *,.admin-shell.dark .lead-message-box *,.admin-shell.dark .photo-manager *,.admin-shell.dark .photo-card *,.admin-shell.dark .settings-block *,.admin-shell.dark .content-block *{color:#111!important}.admin-shell.dark button,.admin-shell.dark .btn,.admin-shell.dark .button,.admin-shell.dark .action-button,.admin-shell.dark button.danger,.admin-shell.dark .danger,.admin-shell.dark .delete-button{color:#fff!important}.admin-shell.dark input,.admin-shell.dark select,.admin-shell.dark textarea{color:#fff!important;background:#101010!important;border-color:#ddba5b73!important}.admin-shell.dark input::placeholder,.admin-shell.dark textarea::placeholder{color:#9a9a9a!important}.admin-shell.dark .crm-form-box input,.admin-shell.dark .crm-form-box select,.admin-shell.dark .crm-form-box textarea,.admin-shell.dark .settings-block input,.admin-shell.dark .settings-block select,.admin-shell.dark .settings-block textarea,.admin-shell.dark .content-block input,.admin-shell.dark .content-block select,.admin-shell.dark .content-block textarea{color:#111!important;background:#fff!important;border-color:#d7d0c2!important}.admin-shell.dark .crm-form-box input::placeholder,.admin-shell.dark .crm-form-box textarea::placeholder,.admin-shell.dark .settings-block input::placeholder,.admin-shell.dark .settings-block textarea::placeholder,.admin-shell.dark .content-block input::placeholder,.admin-shell.dark .content-block textarea::placeholder{color:#666!important}.admin-shell.dark table,.admin-shell.dark table th,.admin-shell.dark table td{color:inherit}.admin-shell.dark .crm-form-box table,.admin-shell.dark .crm-form-box table th,.admin-shell.dark .crm-form-box table td,.admin-shell.dark .crm-table-card table,.admin-shell.dark .crm-table-card table th,.admin-shell.dark .crm-table-card table td,.admin-shell.dark .dashboard-card table,.admin-shell.dark .dashboard-card table th,.admin-shell.dark .dashboard-card table td,.admin-shell.dark .chat-message,.admin-shell.dark .conversation-message,.admin-shell.dark .message-bubble,.admin-shell.dark .chat-panel,.admin-shell.dark .chat-panel h2,.admin-shell.dark .chat-panel h3,.admin-shell.dark .chat-panel p,.admin-shell.dark .chat-panel span{color:#111!important}.admin-shell.dark .admin-main>h1,.admin-shell.dark .crm-page>h1,.admin-shell.dark .crm-page>p,.admin-shell.dark .page-title,.admin-shell.dark .page-subtitle{color:#f8f4ea!important}.admin-theme-dark,.admin-theme-dark .content{color:#f7f1e6!important;background:#111!important}.admin-theme-dark .dashboard-stat-card,.admin-theme-dark .dashboard-box,.admin-theme-dark .lead-form-box,.admin-theme-dark .lead-list-box,.admin-theme-dark .compact-lead-form,.admin-theme-dark .broker-lead-form,.admin-theme-dark .property-images-box,.admin-theme-dark .property-image-card,.admin-theme-dark .selected-files-box,.admin-theme-dark .selected-preview-card,.admin-theme-dark .settings-section,.admin-theme-dark .crm-form-box,.admin-theme-dark .admin-card,.admin-theme-dark .list-panel,.admin-theme-dark .blog-form-box,.admin-theme-dark .client-form-box,.admin-theme-dark .broker-form-box{color:#111!important;background:#f5f0e7!important}.admin-theme-dark .dashboard-stat-card *,.admin-theme-dark .dashboard-box *,.admin-theme-dark .lead-form-box *,.admin-theme-dark .lead-list-box *,.admin-theme-dark .compact-lead-form *,.admin-theme-dark .broker-lead-form *,.admin-theme-dark .property-images-box *,.admin-theme-dark .property-image-card *,.admin-theme-dark .selected-files-box *,.admin-theme-dark .selected-preview-card *,.admin-theme-dark .settings-section *,.admin-theme-dark .crm-form-box *,.admin-theme-dark .admin-card *,.admin-theme-dark .list-panel *,.admin-theme-dark .blog-form-box *,.admin-theme-dark .client-form-box *,.admin-theme-dark .broker-form-box *{color:#111!important}.admin-theme-dark .panel>h1,.admin-theme-dark .panel>p,.admin-theme-dark .admin-title-row h1,.admin-theme-dark .admin-title-row h2,.admin-theme-dark .admin-title-row h3{color:#f7f1e6!important}.admin-theme-dark .dashboard-box .admin-title-row h3,.admin-theme-dark .lead-list-box .admin-title-row h3,.admin-theme-dark .lead-form-box h3,.admin-theme-dark .property-images-box h3,.admin-theme-dark .settings-section h3,.admin-theme-dark .crm-form-box h3,.admin-theme-dark .lead-list-box table,.admin-theme-dark .lead-list-box th,.admin-theme-dark .lead-list-box td,.admin-theme-dark .dashboard-box table,.admin-theme-dark .dashboard-box th,.admin-theme-dark .dashboard-box td,.admin-theme-dark .crm-form-box table,.admin-theme-dark .crm-form-box th,.admin-theme-dark .crm-form-box td{color:#111!important}.admin-theme-dark .lead-message-cell,.admin-theme-dark .lead-notes-cell{color:#111!important;background:#fff!important;border-color:#ddd4c4!important}.admin-theme-dark input,.admin-theme-dark select,.admin-theme-dark textarea{color:#fff!important;background:#101010!important;border-color:#ddba5b80!important}.admin-theme-dark input::placeholder,.admin-theme-dark textarea::placeholder{color:#aaa!important}.admin-theme-dark .lead-form-box input,.admin-theme-dark .lead-form-box select,.admin-theme-dark .lead-form-box textarea,.admin-theme-dark .admin-filter-row input,.admin-theme-dark .admin-filter-row select,.admin-theme-dark .settings-section input,.admin-theme-dark .settings-section select,.admin-theme-dark .settings-section textarea,.admin-theme-dark .crm-form-box input,.admin-theme-dark .crm-form-box select,.admin-theme-dark .crm-form-box textarea{color:#fff!important;background:#101010!important}.admin-theme-dark button,.admin-theme-dark .small-admin-btn,.admin-theme-dark .primary-admin-btn,.admin-theme-dark .danger-admin-btn{color:#fff!important}.admin-theme-dark .dashboard-box a,.admin-theme-dark .lead-list-box a,.admin-theme-dark .crm-form-box a,body.admin-dark .lead-stat-card,body.admin-dark .dashboard-stat-card,body.admin-dark .lead-form-box,body.admin-dark .lead-list-box,body.admin-dark .admin-chat-sessions,body.admin-dark .admin-chat-main,body.admin-dark .admin-chat-messages,body.admin-dark .crm-form-box,body.admin-dark .property-images-box,body.admin-dark .settings-banner-card,body.admin-dark .compact-lead-form,body.admin-dark .compact-leads-table,body.admin-dark .card{color:#111!important}body.admin-dark .lead-stat-card *,body.admin-dark .dashboard-stat-card *,body.admin-dark .lead-form-box *,body.admin-dark .lead-list-box *,body.admin-dark .admin-chat-sessions *,body.admin-dark .admin-chat-main *,body.admin-dark .admin-chat-messages *,body.admin-dark .crm-form-box *,body.admin-dark .property-images-box *,body.admin-dark .settings-banner-card *,body.admin-dark .compact-lead-form *,body.admin-dark .compact-leads-table *,body.admin-dark .card *{color:inherit}body.admin-dark input,body.admin-dark select,body.admin-dark textarea{color:#fff!important;background:#111!important;border-color:#6f5a22!important}body.admin-dark input::placeholder,body.admin-dark textarea::placeholder{color:#9b9b9b!important}body.admin-dark button,body.admin-dark .small-admin-btn,body.admin-dark .danger-admin-btn{color:#fff!important}body.admin-dark .admin-chat-messages .message-client,body.admin-dark .admin-chat-messages .message-agent,body.admin-dark .compact-leads-table td,body.admin-dark .compact-leads-table th,body.admin-dark .lead-list-box td,body.admin-dark .lead-list-box th{color:#111!important}body.admin-dark .lead-message-cell,body.admin-dark .lead-notes-cell{color:#111!important;background:#fff!important}
