/* V3 business polish: brighter hierarchy, clear typography and subtle motion. */
:root{
 --v3-ink:#1d3440;--v3-green:#14866b;--v3-mint:#e9f8f0;--v3-blue:#477ed8;
 --v3-orange:#e68a36;--v3-purple:#8071d4;--v3-red:#d95e59;--v3-line:#e3eaf0;
}
html,body{font-family:"MiSans","HarmonyOS Sans SC","Microsoft YaHei UI","PingFang SC","Noto Sans SC",system-ui,sans-serif;font-size:15px}
body{color:var(--v3-ink)}
.page-head h1{font-size:32px;letter-spacing:-.035em;color:#1b3d39}
.page-head p{font-size:15px}
.card-heading h2{font-size:18px}
.data-table th{font-size:13px}
.data-table td{font-size:14px}
.table-name{font-size:15px}
.table-sub{font-size:12px}
.btn{font-size:14px;min-height:42px}
.input,.select,.textarea{font-size:14px;min-height:44px}
.form-field label{font-size:14px}
.badge{font-size:12px;padding:5px 9px}
.metric{animation:v3Rise .48s both}
.metric:nth-child(2){animation-delay:.05s}.metric:nth-child(3){animation-delay:.1s}.metric:nth-child(4){animation-delay:.15s}
.card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
@keyframes v3Rise{from{opacity:0;transform:translateY(11px)}to{opacity:1;transform:translateY(0)}}
@keyframes v3Fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes v3Pulse{0%,100%{box-shadow:0 0 0 0 rgba(27,160,118,0)}50%{box-shadow:0 0 0 5px rgba(27,160,118,.08)}}
.page-head{animation:v3Fade .36s both}
.sidebar .brand strong{font-size:18px;white-space:nowrap;letter-spacing:0}
.sidebar .brand small{font-size:9px}
.sidebar .brand-logo{background:linear-gradient(145deg,#5ce0b0,#138f77 68%,#08745d)}
.nav a{font-size:14px}
.demo-banner{font-size:13px;line-height:1.6}

/* Customer intention and assignment */
.intent-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}
.intent-summary-card{border-radius:17px;padding:17px 20px;position:relative;overflow:hidden;box-shadow:0 8px 20px rgba(31,55,70,.055);animation:v3Rise .42s both}
.intent-summary-card:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-27px;bottom:-56px;background:rgba(255,255,255,.4)}
.intent-summary-card span,.intent-summary-card small{display:block;position:relative;z-index:1}
.intent-summary-card span{font-size:14px;font-weight:800}
.intent-summary-card strong{display:block;font-size:34px;line-height:1.2;margin:5px 0;position:relative;z-index:1}
.intent-summary-card small{font-size:12px;opacity:.78}
.intent-summary-card.high{background:linear-gradient(120deg,#fff0e9,#ffddd0);color:#a84c35}
.intent-summary-card.mid{background:linear-gradient(120deg,#fff8df,#ffedb9);color:#8f691e}
.intent-summary-card.low{background:linear-gradient(120deg,#eaf2ff,#dce8ff);color:#4e689a}
.intent-pill{display:inline-flex;align-items:baseline;gap:3px;border-radius:11px;padding:6px 10px;font-weight:900;white-space:nowrap}
.intent-pill b{font-size:20px;line-height:1}
.intent-pill small{font-size:10px;font-weight:750}
.intent-pill.high{background:#ffebe5;color:#c6533e}
.intent-pill.mid{background:#fff4d8;color:#9a701f}
.intent-pill.low{background:#edf2fb;color:#64799d}
.intent-field{padding:15px 17px;border:1px solid #e4eee8;border-radius:14px;background:linear-gradient(110deg,#f5fcf8,#f8fbff)}
.intent-number{font-size:24px;color:#d66b3f}
.intent-number small{font-size:12px;color:#809187}
.intent-range{width:100%;accent-color:#18a77e;cursor:pointer;margin:15px 0 7px}
.intent-scale{display:flex;justify-content:space-between;gap:8px;color:#8a9b92;font-size:11px}
.customer-table{min-width:1120px}
.customer-table .table-actions{gap:10px}

/* Property inventory */
.property-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.property-overview-item{border-radius:16px;padding:17px 20px;position:relative;overflow:hidden;color:#fff;box-shadow:0 9px 22px rgba(35,70,63,.08);animation:v3Rise .42s both}
.property-overview-item:after{content:"";position:absolute;right:-25px;top:-40px;width:125px;height:125px;border:1px solid rgba(255,255,255,.28);border-radius:50%;box-shadow:0 0 0 22px rgba(255,255,255,.07),0 0 0 45px rgba(255,255,255,.045)}
.property-overview-item span,.property-overview-item small{display:block;position:relative;z-index:1}
.property-overview-item span{font-size:14px;font-weight:750}
.property-overview-item strong{display:block;font-size:34px;line-height:1.2;margin:5px 0;position:relative;z-index:1}
.property-overview-item small{font-size:12px;opacity:.83}
.property-overview-item.green{background:linear-gradient(120deg,#18a67c,#08775e)}
.property-overview-item.gold{background:linear-gradient(120deg,#f0b34d,#d9802d)}
.property-overview-item.blue{background:linear-gradient(120deg,#699de6,#536ac5)}
.property-toolbar{gap:9px}
.property-toolbar .select{min-width:130px}
.property-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:20px}
.property-card-v3{border-radius:19px;overflow:hidden;animation:v3Rise .4s both}
.property-card-v3:nth-child(2){animation-delay:.04s}.property-card-v3:nth-child(3){animation-delay:.08s}
.property-photo{height:178px;position:relative;overflow:hidden;background:#e7f0e8}
.property-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.property-card-v3:hover .property-photo img{transform:scale(1.055)}
.photo-source,.photo-priority,.photo-count{position:absolute;top:12px;border-radius:8px;padding:5px 9px;font-size:11px;font-weight:850;backdrop-filter:blur(8px)}
.photo-source{left:12px;background:rgba(255,255,255,.9);color:#16815f}
.photo-source.shared{color:#765db8}
.photo-priority{right:12px;background:rgba(255,244,222,.95);color:#9c6b1f}
.photo-count{right:12px;top:auto;bottom:12px;background:rgba(20,46,38,.66);color:#fff}
.property-card-v3 .property-card-body{padding:17px;gap:10px}
.property-card-v3 h3{font-size:17px;min-height:48px;line-height:1.48;color:#203d37}
.property-tags span{background:#eef5f2;color:#59766a;font-size:12px;padding:4px 8px;border-radius:7px}
.property-feature-list{display:flex;flex-wrap:wrap;gap:6px}
.property-feature-list span{font-size:11px;background:#f0f3ff;color:#6877b7;border:1px solid #e0e6ff;border-radius:6px;padding:4px 8px}
.property-price{font-size:23px;color:#138368}
.property-interest-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-radius:11px;background:linear-gradient(90deg,#fff7e9,#fffaf2);border:1px solid #f5ead6}
.interest-count{font-size:12px;color:#8c6b3d}.interest-count b{font-size:20px;color:#c17a2b;margin-right:3px}
.property-card-foot{padding-top:11px}
.image-upload-box{border:1px dashed #cbded1;border-radius:13px;padding:13px;background:#f8fcf9}
.image-upload-box .input{border:0;background:transparent;padding:5px 0}
.image-upload-box small{display:block;color:#87988e;font-size:12px}
.upload-preview{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.upload-thumb{width:92px;height:72px;border-radius:10px;overflow:hidden;position:relative;background:#e7eee9;border:1px solid #e0e9e2}
.upload-thumb img{width:100%;height:100%;object-fit:cover}
.upload-thumb button{position:absolute;right:4px;top:4px;width:22px;height:22px;border:0;border-radius:50%;background:#243b34cc;color:white;font-size:17px;line-height:1}
.feature-picker{display:flex;flex-wrap:wrap;gap:8px}
.feature-option{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #e1e9e3;border-radius:9px;background:#fff;font-size:13px!important;cursor:pointer;transition:.16s}
.feature-option:has(input:checked){background:#e7f8ef;border-color:#8dd4ad;color:#167a58}
.feature-option input{accent-color:#159b74}
.property-detail-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.property-detail-gallery img{width:100%;height:112px;object-fit:cover;border-radius:10px;background:#eef4ef}
.property-detail-hero h2{font-size:22px;margin:8px 0 14px;color:#203f35}
.detail-features{margin-top:5px}
.property-customer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:23px 0 10px}
.property-customer-heading h3{font-size:16px}
.property-customer-heading p{font-size:12px;color:#83958a;margin-top:4px}
.linked-customer-list{border:1px solid #e7eee9;border-radius:12px;overflow:hidden}
.linked-customer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #edf2ee}
.linked-customer:last-child{border-bottom:0}
.linked-customer b,.linked-customer small{display:block}
.linked-customer b{font-size:14px}
.linked-customer small{font-size:11px;color:#8b9b92;margin-top:4px}

/* Two-way matching */
.matching-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:16px}
.matching-mode-tabs button{display:flex;align-items:center;gap:14px;text-align:left;padding:17px 20px;border:1px solid #dfe9e3;border-radius:16px;background:#fff;color:#49665a;transition:.2s}
.matching-mode-tabs button:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(36,71,54,.08)}
.matching-mode-tabs button.active{border-color:#4ab98e;background:linear-gradient(115deg,#e9fbf1,#f0f7ff);box-shadow:0 7px 20px rgba(24,137,99,.11)}
.matching-mode-tabs .mode-icon{width:44px;height:44px;border-radius:13px;background:#e3f7ec;color:#138466;display:grid;place-items:center}
.matching-mode-tabs button:nth-child(2) .mode-icon{background:#eeeaff;color:#7568bf}
.matching-mode-tabs b,.matching-mode-tabs small{display:block}
.matching-mode-tabs b{font-size:16px;color:#24463a}
.matching-mode-tabs small{font-size:12px;color:#82948b;margin-top:3px}
.match-disclaimer{margin-bottom:18px}
.match-layout-v3{grid-template-columns:300px minmax(0,1fr)}
.match-sidebar-v3{border-radius:18px;background:linear-gradient(180deg,#fff,#f5fbf7);border-color:#dfece4}
.match-side-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.match-sidebar-v3 h3{font-size:17px;margin:4px 0 13px}
.match-sidebar-v3 .match-field{margin-top:17px}
.match-sidebar-v3 .match-field label{font-size:12px}
.match-sidebar-v3 .match-field strong{font-size:15px}
.match-property-cover{width:100%;height:145px;object-fit:cover;border-radius:12px;margin:13px 0 5px}
.match-property-title{font-size:16px!important;line-height:1.5}
.match-results-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 13px}
.match-results-head h2{font-size:19px;color:#24443a}
.match-results-head p{font-size:13px;color:#819288;margin-top:4px}
.match-card-v3{display:grid;grid-template-columns:128px 68px minmax(0,1fr);gap:14px;padding:15px;border-radius:17px;animation:v3Fade .35s both}
.match-thumb{height:128px;position:relative;overflow:hidden;border-radius:12px;background:#eaf2eb}
.match-thumb img{width:100%;height:100%;object-fit:cover}
.match-thumb span{position:absolute;left:7px;bottom:7px;background:#ffffffdf;color:#257a5b;padding:4px 7px;border-radius:6px;font-size:10px;font-weight:800}
.match-card-v3 .score-bubble{min-width:0;width:62px;height:62px}
.match-card-v3 .match-body h3{font-size:16px}
.match-card-v3 .match-meta{font-size:12px}
.customer-match-card{padding:17px 19px;border-radius:17px;animation:v3Fade .35s both}
.customer-match-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.customer-match-top h3{font-size:17px}
.customer-match-top p{font-size:12px;color:#82958b;margin-top:5px}
.customer-match-meta{display:flex;flex-wrap:wrap;gap:8px 17px;font-size:12px;color:#758a7d;margin-top:12px}
.customer-match-card .score-bubble{width:64px;height:64px;min-width:64px}
.customer-match-card .reasons{margin-top:13px}
.match-list{gap:13px}
.match-actions{gap:8px}
.match-actions .btn{min-height:35px}

/* Team operation center */
.team-source-note{display:flex;align-items:center;gap:9px;padding:11px 14px;background:linear-gradient(100deg,#eef8ff,#f6f1ff);border:1px solid #e2e8fb;border-radius:12px;color:#61739a;font-size:13px;margin-bottom:15px}
.team-tabs{display:flex;gap:7px;overflow-x:auto;padding:5px 2px 13px;margin-bottom:12px;scrollbar-width:thin}
.team-tabs button{flex:none;display:flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #e0e8e3;background:#fff;color:#6c8175;border-radius:10px;font-size:13px;font-weight:800;transition:.17s}
.team-tabs button:hover{background:#f3faf6;color:#178466}
.team-tabs button.active{background:linear-gradient(120deg,#158c6d,#0d705b);border-color:#138269;color:#fff;box-shadow:0 5px 13px rgba(20,128,96,.2)}
.team-tabs button small{font-size:10px;padding:2px 6px;border-radius:6px;background:#f0f2ff;color:#7770bd}
.team-tabs button.active small{background:#ffffff30;color:#fff}
.team-tab-content{animation:v3Fade .25s both}
.staff-stats-v3{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:17px}
.staff-stat-v3,.staff-stats-v3 .staff-stat{border-radius:16px;position:relative;overflow:hidden}
.staff-stats-v3 .staff-stat strong{font-size:32px;color:#243f38}
.staff-stats-v3 .staff-stat span{font-size:13px;color:#627c70;font-weight:800}
.staff-stats-v3 .staff-stat small{display:block;color:#8a9b91;font-size:11px;margin-top:4px}
.staff-stats-v3 .accent-green{border-top:3px solid #26ae82;background:linear-gradient(140deg,#fff,#effaf4)}
.staff-stats-v3 .accent-blue{border-top:3px solid #6b91db;background:linear-gradient(140deg,#fff,#f0f5ff)}
.staff-stats-v3 .accent-orange{border-top:3px solid #e7a34c;background:linear-gradient(140deg,#fff,#fff7e9)}
.staff-stats-v3 .accent-purple{border-top:3px solid #8a7ad5;background:linear-gradient(140deg,#fff,#f5f1ff)}
.team-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.team-panel{padding-bottom:14px;overflow:hidden}
.team-bars{padding:18px 22px 20px;display:flex;flex-direction:column;gap:13px}
.team-bar-row{display:grid;grid-template-columns:85px minmax(0,1fr) 30px;align-items:center;gap:10px;font-size:13px}
.team-bar-row>span{color:#647a6e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-bar-row>b{color:#3f5b4e;text-align:right}
.team-bar-track{height:11px;border-radius:20px;background:#edf2ef;overflow:hidden}
.team-bar-track i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#79d9ad,#159b75);animation:barGrow .7s ease both}
.team-bar-track i.bar-blue{background:linear-gradient(90deg,#aabcf4,#6c85d6)}
.team-bar-track i.bar-orange{background:linear-gradient(90deg,#f4ce8c,#e69b48)}
@keyframes barGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.team-rank-list{padding:8px 22px 18px}
.team-rank-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #eff3f0}
.team-rank-row:last-child{border:0}
.rank-no{width:29px;height:29px;border-radius:9px;background:#f0f3f1;color:#82948a;display:grid;place-items:center;font-size:11px;font-weight:900}
.rank-no.top{background:#fff1d7;color:#b67a29}
.rank-main{width:120px;min-width:100px}
.rank-main b,.rank-main small{display:block}
.rank-main b{font-size:13px}.rank-main small{font-size:10px;color:#8b9c92;margin-top:3px}
.rank-track{flex:1;height:9px;border-radius:20px;background:#edf2ef;overflow:hidden}
.rank-track i{display:block;height:100%;background:linear-gradient(90deg,#efc47d,#e68a3d);border-radius:20px}
.team-rank-row>strong{width:28px;text-align:right;color:#3d5c4b}
.team-task-list{padding:10px 20px 18px}
.team-task-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px dashed #e9efeb}
.team-task-row:last-child{border:0}
.team-task-row b,.team-task-row small{display:block}
.team-task-row b{font-size:14px}
.team-task-row small{font-size:12px;color:#84968c;margin-top:4px}
.team-roster-table{min-width:1120px}
.customer-count-cell{color:#148b68;font-size:17px}
.account-matrix{min-width:1000px}
.account-legend{display:flex;flex-wrap:wrap;gap:12px;padding:15px 20px;border-top:1px solid #eef2ef}
.account-legend>span{display:flex;align-items:center;gap:6px;font-size:12px;color:#82948a}
.dashboard-inline-link{padding:0 23px 18px}
.dashboard-inline-link a{display:inline-flex;align-items:center;gap:6px;color:#168466;font-size:13px;font-weight:800}

/* Responsive */
@media(max-width:1200px){
 .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .staff-stats-v3{grid-template-columns:repeat(2,minmax(0,1fr))}
 .property-toolbar .toolbar-search{flex-basis:100%}
}
@media(max-width:980px){
 .team-dashboard-grid{grid-template-columns:1fr}
 .match-layout-v3{grid-template-columns:1fr}
 .match-card-v3{grid-template-columns:110px 60px minmax(0,1fr)}
}
@media(max-width:680px){
 .page-head h1{font-size:26px}
 .intent-summary,.property-overview{gap:8px}
 .intent-summary-card,.property-overview-item{padding:13px 12px}
 .intent-summary-card strong,.property-overview-item strong{font-size:26px}
 .intent-summary-card span,.property-overview-item span{font-size:12px}
 .intent-summary-card small,.property-overview-item small{font-size:10px}
 .property-grid{grid-template-columns:1fr;padding:12px}
 .property-photo{height:190px}
 .property-detail-gallery{grid-template-columns:repeat(2,1fr)}
 .property-detail-gallery img{height:100px}
 .matching-mode-tabs{gap:8px}
 .matching-mode-tabs button{padding:12px 10px;gap:9px}
 .matching-mode-tabs .mode-icon{width:37px;height:37px}
 .matching-mode-tabs b{font-size:13px}
 .matching-mode-tabs small{font-size:10px}
 .match-card-v3{grid-template-columns:88px minmax(0,1fr);gap:10px}
 .match-thumb{grid-row:span 2;height:105px}
 .match-card-v3 .score-bubble{grid-column:2;grid-row:1;width:auto;height:auto;min-width:0;flex-direction:row;justify-content:flex-start;gap:6px;border-radius:8px;padding:6px 9px}
 .match-card-v3 .match-body{grid-column:1/-1}
 .match-results-head{align-items:flex-start}
 .match-results-head h2{font-size:16px}
 .staff-stats-v3{gap:9px}
 .staff-stats-v3 .staff-stat{padding:13px}
 .staff-stats-v3 .staff-stat strong{font-size:25px}
 .team-bar-row{grid-template-columns:70px minmax(0,1fr) 25px;gap:7px}
 .rank-main{width:95px;min-width:80px}
 .team-source-note{font-size:11px;align-items:flex-start}
 .linked-customer{align-items:flex-start;flex-direction:column}
 .property-customer-heading{align-items:flex-start;flex-direction:column}
 .intent-scale{font-size:9px}
}
