/* Reversible EDVIA UI/analytics enhancement layer */
.metrics-upgraded{grid-template-columns:repeat(3,minmax(0,1fr))}
.metric-rich{display:flex;align-items:center;gap:14px;min-height:118px;position:relative;overflow:hidden}
.metric-rich:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-28px;bottom:-38px;background:rgba(24,185,155,.06)}
.metric-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--soft);color:var(--accent2);font-size:19px;font-weight:900;flex:0 0 auto}
.metric-rich.amber .metric-icon{background:#fff5df;color:#b7791f}.metric-rich.red .metric-icon{background:#fff0ef;color:#c94545}.metric-rich.violet .metric-icon{background:#f1edff;color:#6d5bd0}.metric-rich.green .metric-icon{background:#eafaf2;color:#14865e}
.dashboard-analytics{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.analytics-total{font-size:11px;font-weight:800;color:var(--muted)}
.distribution-wrap{display:grid;grid-template-columns:160px 1fr;gap:22px;align-items:center}
.donut{width:150px;height:150px;border-radius:50%;background:conic-gradient(#16b897 0 calc(var(--sale)*1%),#5bd4bf calc(var(--sale)*1%) calc((var(--sale) + var(--rent))*1%),#95e8d8 calc((var(--sale) + var(--rent))*1%) calc((var(--sale) + var(--rent) + var(--owner))*1%),#d9e2ec calc((var(--sale) + var(--rent) + var(--owner))*1%) 100%);display:grid;place-items:center;position:relative}
.donut:after{content:"";position:absolute;width:92px;height:92px;border-radius:50%;background:#fff}
.donut>div{z-index:1;text-align:center}.donut b{display:block;font-size:26px}.donut small{color:var(--muted)}
.distribution-list{display:grid;gap:10px}.distribution-list>div{display:grid;grid-template-columns:10px 1fr auto 42px;gap:8px;align-items:center;font-size:12px}.distribution-list small{text-align:right;color:var(--muted)}.dot{width:8px;height:8px;border-radius:50%}.dot.sale{background:#16b897}.dot.rent{background:#5bd4bf}.dot.owner{background:#95e8d8}.dot.other{background:#d9e2ec}
.follow-bars{display:grid;gap:14px}.follow-bar>div{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}.follow-bar i{height:8px;background:#eef2f6;border-radius:99px;display:block;overflow:hidden}.follow-bar em{display:block;height:100%;border-radius:99px;background:#16b897}.follow-bar em.overdue{background:#e75d58}.follow-bar em.today{background:#e4a839}.follow-bar em.future{background:#27b99f}.follow-bar em.undated{background:#94a3b8}.analytics-foot{font-size:10px;color:var(--muted);margin-top:16px}
.dash-match-highlight{display:flex;align-items:center;gap:14px}.dash-match-highlight>div{flex:1}.dash-match-highlight b,.dash-match-highlight small{display:block}.dash-match-highlight small{margin-top:3px;color:var(--muted)}.match-burst{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--soft);color:var(--accent2);font-size:20px}
.mini-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--accent2);font-size:10px;font-weight:900;flex:0 0 auto}.recent-contact{justify-content:flex-start}.recent-contact .grow{flex:1}
.badge.good{background:#e9fbf2;color:#138259}.badge.warn{background:#fff5df;color:#b7791f}.badge.muted{background:#eef2f6;color:#64748b}.badge.neutral{background:#edf8ff;color:#3976a8}
.contact-identity{display:flex;align-items:center;gap:9px}.cell-main{font-size:12px}.advisor-chip{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#475569;font-size:10px;font-weight:750}.follow-date{font-size:11px;font-weight:750}.follow-date.overdue{color:#c94545}.follow-date.today{color:#b7791f}.follow-date.future{color:#0c8b75}.follow-date.undated{color:#94a3b8}
.premium-card{box-shadow:0 8px 25px rgba(15,23,42,.035);transition:.18s ease}.premium-card:hover{transform:translateY(-2px);box-shadow:0 12px 35px rgba(15,23,42,.075)}.property-code{display:inline-flex;padding:5px 8px;border-radius:8px;background:#f2f5f8;color:#475569;font-size:10px;font-weight:850}.premium-meta{padding:9px 0;border-top:1px solid #f1f4f7;border-bottom:1px solid #f1f4f7}.premium-meta span{font-size:10px}.location-line{font-size:11px;color:var(--muted);margin:11px 0}.premium-owner{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start}.premium-owner>div small,.premium-owner>div b,.premium-owner>div span{display:block}.premium-owner>div small{font-size:8px;letter-spacing:.08em;color:#94a3b8}.premium-owner>div b{margin:4px 0 2px}.premium-owner>div span{font-size:10px;color:var(--muted)}.premium-owner p{grid-column:1/-1}.premium-owner>.badge.warn{grid-column:1/-1;width:max-content}.premium-price{font-size:23px!important}
.task-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 16px}.task-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 15px;display:flex;align-items:center;gap:10px}.task-stat>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f4f6f8;font-weight:900}.task-stat small,.task-stat b{display:block}.task-stat small{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.task-stat b{font-size:20px;margin-top:2px}.task-stat.overdue>span{background:#fff0ef;color:#c94545}.task-stat.today>span{background:#fff5df;color:#b7791f}.task-stat.future>span{background:#e9fbf6;color:#0c8b75}.task-stat.undated>span{background:#eef2f6;color:#64748b}
.member-row-rich{padding-top:14px;padding-bottom:14px}.member-row-rich .member-copy{flex:1}.member-stats{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.member-stats span{font-size:9px;color:#64748b;background:#f5f7f9;padding:4px 7px;border-radius:999px}.member-stats span b{display:inline;font-size:10px;color:#334155}
.match-list{display:grid;gap:11px}.match-card-rich{display:grid;grid-template-columns:44px 82px minmax(160px,.8fr) 30px minmax(220px,1fr) minmax(220px,1.2fr);gap:14px;align-items:center;padding:17px 18px;background:#fff;border:1px solid var(--line);border-radius:17px}.match-card-rich.excellent{border-left:4px solid #13a878}.match-card-rich.strong{border-left:4px solid #24b7a0}.match-card-rich.good{border-left:4px solid #7dcfbe}.match-rank{font-size:11px;color:#94a3b8;font-weight:900}.match-card-rich .match-score{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;align-content:center;background:var(--soft);color:var(--accent2)}.match-card-rich .match-score b{font-size:19px}.match-card-rich .match-score small{font-size:8px;font-weight:800}.match-person small,.match-property small{display:block;font-size:8px;letter-spacing:.08em;color:#94a3b8}.match-person b,.match-property b{display:block;margin:4px 0}.match-person span,.match-property span{font-size:10px;color:var(--muted)}.match-arrow{font-size:18px;color:#94a3b8}.match-card-rich .reasons{display:flex;gap:6px;flex-wrap:wrap}.match-card-rich .reasons span{font-size:9px;background:#f3faf7;color:#247a63;border-radius:999px;padding:5px 8px}
@media(max-width:1200px){.metrics-upgraded{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-analytics{grid-template-columns:1fr}.match-card-rich{grid-template-columns:40px 75px 1fr 24px 1fr}.match-card-rich .reasons{grid-column:3/-1}}
@media(max-width:760px){.metrics-upgraded{grid-template-columns:1fr}.distribution-wrap{grid-template-columns:1fr}.donut{margin:auto}.task-stats{grid-template-columns:repeat(2,1fr)}.match-card-rich{grid-template-columns:58px 1fr}.match-rank,.match-arrow{display:none}.match-person,.match-property,.match-card-rich .reasons{grid-column:auto}.dash-match-highlight{align-items:flex-start;flex-wrap:wrap}}
