
/* AutoMart Buyer Account Suite V31.0
   Scoped to .am-account-v31.
   Uses the existing global font family and typography authority.
   No user-facing font is intentionally set below 12px.
   Header / global sticky search / footer remain untouched.
*/
.am-account-v31,.am-account-v31 *{box-sizing:border-box;font-family:inherit}
.am-account-v31{padding:20px 0 28px;background:linear-gradient(180deg,#f8fbf9 0,#f4f8f6 100%);color:#122033}
.am-account-shell-v31{width:min(1280px,calc(100% - 64px));margin:auto;display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px}
.am-account-side-v31{position:sticky;top:150px;align-self:start;border:1px solid #dfe8e3;border-radius:14px;background:#fff;padding:12px;box-shadow:0 8px 24px rgba(14,42,29,.05)}
.am-account-user-v31{display:flex;align-items:center;gap:10px;padding:4px 4px 12px;border-bottom:1px solid #edf2ef}
.am-account-avatar-v31,.am-account-profile-avatar-v31{display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#11b66e,#087c49);color:#fff;font-weight:900}
.am-account-avatar-v31{width:42px;height:42px;flex:0 0 42px}
.am-account-user-v31 strong,.am-account-user-v31 small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-account-user-v31 strong{font-size:13px}.am-account-user-v31 small{font-size:12px;color:#758295;margin-top:2px;max-width:110px}
.am-account-nav-v31{display:grid;gap:3px;padding:10px 0}
.am-account-nav-v31 a{min-height:40px;padding:0 10px;border-radius:9px;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;color:#203044;font-size:12px;font-weight:750}
.am-account-nav-v31 a:hover,.am-account-nav-v31 a.active{background:#e8f8f0;color:#07894e}
.am-account-nav-v31 a.active{box-shadow:inset 3px 0 #10a864}
.am-account-nav-icon-v31{font-size:17px;text-align:center}.am-account-nav-v31 em{min-width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#ed3038;color:#fff;font-size:12px;font-style:normal}
.am-account-role-links-v31{display:grid;gap:6px;padding:8px 4px;border-top:1px solid #edf2ef}.am-account-role-links-v31 a{font-size:12px;color:#087a49}
.am-account-side-promo-v31{margin-top:8px;border-radius:12px;padding:16px 12px;color:#fff;background:linear-gradient(150deg,rgba(2,26,18,.97),rgba(3,63,42,.80)),url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=600&q=80') center/cover;min-height:210px;display:flex;flex-direction:column;justify-content:flex-end}
.am-account-side-promo-v31 .eyebrow{font-size:12px;color:#8df0bc;font-weight:800}.am-account-side-promo-v31 h3{margin:7px 0 5px;font-size:21px;line-height:1.05;color:#fff}.am-account-side-promo-v31 p{font-size:12px;line-height:1.5;color:#d5e5dd}.am-account-side-promo-v31 a{margin-top:14px;min-height:38px;border-radius:9px;background:#fff;color:#0c3b2b;display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;font-weight:850}
.am-account-logout-v31{margin-top:8px;padding:10px;display:block;color:#344356;font-size:12px;font-weight:750}
.am-account-main-v31{min-width:0}.am-account-main-v31 h1,.am-account-main-v31 h2,.am-account-main-v31 h3,.am-account-main-v31 p{margin-top:0}
.am-account-main-v31 h1{font-size:30px;letter-spacing:-.035em;line-height:1.02}.am-account-main-v31 h2{font-size:16px;letter-spacing:-.02em}.am-account-main-v31 h3{font-size:14px}
.am-account-main-v31 p,.am-account-muted-v31{font-size:12px;color:#738096;line-height:1.55}
.am-account-title-row-v31{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:14px}.am-account-title-row-v31 h1{margin:0}.am-account-title-row-v31 p{margin:5px 0 0}
.am-account-primary-v31,.am-account-secondary-v31,.am-account-outline-v31{min-height:38px;border-radius:9px;padding:0 14px;border:1px solid transparent;font:inherit;font-size:12px;font-weight:850;cursor:pointer}
.am-account-primary-v31{background:#07975a;color:#fff;box-shadow:0 7px 18px rgba(7,151,90,.16)}.am-account-secondary-v31{background:#fff;border-color:#d9e4de;color:#25354a}.am-account-outline-v31{background:#fff;border-color:#b7daca;color:#087749;width:100%}
.am-account-hero-v31{min-height:150px;border-radius:14px;overflow:hidden;padding:24px 28px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:25px;background-position:center;background-size:cover;box-shadow:0 10px 28px rgba(8,35,23,.12)}
.am-account-hero-v31 .eyebrow{font-size:12px;letter-spacing:.12em;color:#6ee4a8;font-weight:850}.am-account-hero-v31 h1{margin:7px 0 8px;color:#fff;font-size:32px}.am-account-hero-v31 p{max-width:520px;margin-bottom:0;color:#e7f1ed}
.am-account-hero-overview-v31,.am-account-hero-offers-v31,.am-account-hero-drives-v31,.am-account-hero-alerts-v31,.am-account-hero-history-v31{background-image:linear-gradient(90deg,rgba(3,29,20,.94),rgba(5,38,27,.50),rgba(3,22,16,.76)),url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=84')}
.am-account-hero-cta-v31{width:220px;flex:0 0 220px;padding:14px;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:rgba(4,39,27,.56);backdrop-filter:blur(8px)}.am-account-hero-cta-v31 strong{font-size:13px}.am-account-hero-cta-v31 p{margin:7px 0 12px;font-size:12px}.am-account-hero-cta-v31 a{display:inline-flex;min-height:36px;padding:0 13px;align-items:center;border-radius:8px;background:#0ca565;color:#fff;font-size:12px;font-weight:850}
.am-account-progress-v31{width:220px;height:5px;border-radius:10px;background:rgba(255,255,255,.17);overflow:hidden;margin-top:15px}.am-account-progress-v31 span{display:block;height:100%;background:#19c77d}.am-account-hero-v31>div>small{display:block;margin-top:7px;color:#d7e8e0;font-size:12px}.am-account-hero-v31>div>small b{float:right}
.am-account-kpis-v31{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:10px 0}.am-account-kpis-v31>a,.am-account-kpis-v31>div{min-width:0;border:1px solid #dfe8e3;border-radius:11px;background:#fff;padding:12px;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto auto;column-gap:9px;color:#233247;box-shadow:0 4px 14px rgba(11,38,26,.035)}
.am-account-kpis-v31 span{grid-row:1/4;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e7f8f0;color:#07975a;font-size:17px}.am-account-kpis-v31 strong{font-size:20px;line-height:1}.am-account-kpis-v31 small{font-size:12px;color:#6e7b8e}.am-account-kpis-v31 em{font-size:12px;color:#08935a;font-style:normal;margin-top:2px}
.am-account-kpis-3-v31{grid-template-columns:repeat(3,1fr)}.am-account-kpis-4-v31{grid-template-columns:repeat(4,1fr)}
.am-account-panel-v31{border:1px solid #dfe8e3;border-radius:12px;background:#fff;padding:12px;box-shadow:0 4px 14px rgba(11,38,26,.035);min-width:0}
.am-account-panel-head-v31{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.am-account-panel-head-v31 h2{margin:0}.am-account-panel-head-v31 p{margin:3px 0 0}.am-account-panel-head-v31 a{font-size:12px;font-weight:800;color:#088a52}
.am-account-two-v31{display:grid;grid-template-columns:1fr 1fr;gap:10px}.am-account-three-v31{display:grid;grid-template-columns:1.1fr 1.1fr 1fr;gap:10px;margin-top:10px}
.am-account-cards-v31{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.am-account-history-grid-v31{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.am-account-vehicle-v31{min-width:0;border:1px solid #e1e9e5;border-radius:9px;overflow:hidden;background:#fff}.am-account-vehicle-media-v31{height:105px;display:block;position:relative;background:#eef3f0}.am-account-vehicle-media-v31 img{width:100%;height:100%;object-fit:cover}.am-account-heart-v31{position:absolute;right:7px;top:7px;width:29px;height:29px;border:0;border-radius:50%;background:#fff;color:#213347;font-size:18px;cursor:pointer}.am-account-heart-v31.saved{background:#fff0f1;color:#e21d37}
.am-account-vehicle-body-v31{padding:9px}.am-account-vehicle-title-v31{display:block;color:#18283a;font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-account-vehicle-price-v31{display:block;color:#07894e;font-size:15px;margin-top:4px}.am-account-vehicle-facts-v31{display:flex;justify-content:space-between;gap:5px;margin-top:7px;color:#748095;font-size:12px}.am-account-vehicle-dealer-v31{margin-top:7px;border-top:1px solid #edf2ef;padding-top:7px;color:#08794a;font-size:12px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-account-vehicle-dealer-v31 span{color:#13b56f}.am-account-vehicle-dealer-v31 small{font-size:12px;color:#8a95a4}
.am-account-list-v31{display:grid}.am-account-list-v31>a{min-height:47px;display:grid;grid-template-columns:34px 1fr auto;gap:8px;align-items:center;border-bottom:1px solid #edf2ef;color:#26364a}.am-account-list-v31>a:last-child{border-bottom:0}.am-account-list-v31 strong,.am-account-list-v31 small{display:block;font-size:12px}.am-account-list-v31 small{color:#758296;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-account-list-v31 em{font-size:12px;color:#748094;font-style:normal}.am-account-list-avatar-v31{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#0e3023;color:#fff;font-size:12px;font-weight:850;flex:0 0 34px}
.am-account-event-v31{display:grid;gap:7px}.am-account-event-v31>div{display:grid;grid-template-columns:55px 1fr auto;gap:8px;align-items:center;border:1px solid #edf2ef;border-radius:9px;padding:6px}.am-account-event-v31 img{width:55px;height:45px;border-radius:7px;object-fit:cover}.am-account-event-v31 strong,.am-account-event-v31 small{display:block;font-size:12px}.am-account-event-v31 small{color:#768296;margin-top:3px}.am-account-event-v31 em{font-size:12px;color:#07894e;font-style:normal;background:#e4f8ef;border-radius:20px;padding:4px 7px}
.am-account-alert-mini-v31{display:grid;gap:5px}.am-account-alert-mini-v31 label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #edf2ef}.am-account-alert-mini-v31 label:last-child{border-bottom:0}.am-account-alert-mini-v31 b,.am-account-alert-mini-v31 small{display:block;font-size:12px}.am-account-alert-mini-v31 small{color:#7d8999;margin-top:2px}.am-account-alert-mini-v31 input{display:none}.am-account-alert-mini-v31 i,.am-alert-grid-v31 label i{width:30px;height:17px;border-radius:20px;background:#cfd8d3;display:block;position:relative}.am-account-alert-mini-v31 i:after,.am-alert-grid-v31 label i:after{content:"";position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#fff;transition:.2s}.am-account-alert-mini-v31 input:checked+i,.am-alert-grid-v31 input:checked+i{background:#0ca565}.am-account-alert-mini-v31 input:checked+i:after,.am-alert-grid-v31 input:checked+i:after{left:15px}
.am-account-toolbar-v31{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px}.am-account-toolbar-v31 select,.am-account-panel-head-v31 select,.am-alert-grid-v31 select{min-height:36px;border:1px solid #dfe6e2;border-radius:8px;background:#fff;padding:0 10px;font-size:12px}
.am-account-chips-v31{display:flex;gap:6px;flex-wrap:wrap}.am-account-chips-v31 button{min-height:32px;padding:0 11px;border-radius:20px;border:1px solid #dce6e1;background:#fff;font:inherit;font-size:12px;font-weight:750;color:#405066}.am-account-chips-v31 button.active{background:#e4f7ee;color:#07894e;border-color:#bde6d0}
.am-account-favorites-layout-v31,.am-alert-layout-v31{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:10px}.am-account-saved-grid-v31{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.am-account-right-v31{display:grid;align-content:start;gap:10px}
.am-account-collection-v31{display:grid}.am-account-collection-v31 a{display:grid;grid-template-columns:31px 1fr auto;grid-template-rows:auto auto;column-gap:8px;padding:8px 0;border-bottom:1px solid #edf2ef;color:#2b3b4f;align-items:center}.am-account-collection-v31 a span{grid-row:1/3;width:31px;height:31px;border-radius:9px;background:#edf6f2;display:grid;place-items:center}.am-account-collection-v31 b,.am-account-collection-v31 small{font-size:12px}.am-account-collection-v31 small{color:#7b8798}.am-account-collection-v31 em{grid-row:1/3;grid-column:3;font-style:normal;color:#07894e;font-size:12px}
.am-account-tip-v31{border:1px solid #cfe9dc;border-radius:12px;padding:13px;background:linear-gradient(135deg,#f0fbf5,#e7f9f0)}.am-account-tip-v31 strong{font-size:13px;color:#08794a}.am-account-tip-v31 p{margin:5px 0 0}
.am-account-compare-v31{position:sticky;bottom:8px;margin-top:10px;border:1px solid #d8e8e0;border-radius:12px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 10px 25px rgba(8,35,23,.12);z-index:5}.am-account-compare-v31 strong,.am-account-compare-v31 small{display:block;font-size:12px}.am-account-compare-v31 button{min-height:38px;border:0;border-radius:9px;background:#07975a;color:#fff;padding:0 18px;font-weight:850;font-size:12px}
.am-messages-v31{display:grid;grid-template-columns:260px minmax(0,1fr) 220px;gap:10px}.am-account-search-v31{width:100%;height:38px;border:1px solid #dfe6e2;border-radius:8px;padding:0 10px;font:inherit;font-size:12px;margin-bottom:8px}
.am-message-threads-v31{display:grid;margin-top:8px}.am-message-threads-v31 button{border:0;background:#fff;text-align:left;display:grid;grid-template-columns:36px 1fr auto;gap:8px;padding:9px 5px;border-bottom:1px solid #edf2ef;cursor:pointer}.am-message-threads-v31 button.active{background:#e7f8f0;border-radius:9px;border-bottom-color:transparent}.am-message-threads-v31 strong,.am-message-threads-v31 small,.am-message-threads-v31 em{display:block;font-size:12px}.am-message-threads-v31 em{font-style:normal;color:#788497;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-message-threads-v31>button>small{color:#768295}
.am-message-chat-head-v31{display:flex;align-items:center;gap:9px;padding-bottom:8px;border-bottom:1px solid #edf2ef}.am-message-chat-head-v31 div{flex:1}.am-message-chat-head-v31 strong,.am-message-chat-head-v31 small{display:block;font-size:12px}.am-message-chat-head-v31 small{color:#0a9a5e}.am-message-chat-head-v31 button{width:34px;height:34px;border:1px solid #dfe6e2;background:#fff;border-radius:50%}
.am-message-vehicle-v31{margin:9px 0;display:grid;grid-template-columns:85px 1fr auto;gap:10px;border:1px solid #e3ebe7;border-radius:9px;padding:7px;color:#25364a}.am-message-vehicle-v31 img{width:85px;height:58px;object-fit:cover;border-radius:7px}.am-message-vehicle-v31 strong,.am-message-vehicle-v31 b,.am-message-vehicle-v31 small{display:block;font-size:12px}.am-message-vehicle-v31 b{color:#07894e;font-size:14px;margin:3px 0}.am-message-vehicle-v31 small{color:#788496}
.am-message-chat-body-v31{height:390px;overflow:auto;padding:7px;background:#fbfcfb;border-radius:9px}.am-message-chat-body-v31 p{max-width:78%;padding:10px 12px;border-radius:13px;margin:8px 0;font-size:12px;color:#334357}.am-message-chat-body-v31 p.dealer{background:#eef2f5}.am-message-chat-body-v31 p.buyer{margin-left:auto;background:#dcf7e9}.am-message-chat-body-v31 .date{display:block;text-align:center;font-size:12px;color:#8290a2}
.am-message-compose-v31{display:grid;grid-template-columns:34px 1fr 34px;gap:6px;margin-top:8px}.am-message-compose-v31 input{height:36px;border:1px solid #dde6e1;border-radius:8px;padding:0 10px;font:inherit;font-size:12px}.am-message-compose-v31 button{border:0;border-radius:50%;background:#eef3f0}.am-message-compose-v31 .send{background:#0ba663;color:#fff}
.am-dealer-profile-v31{display:flex;align-items:center;gap:9px}.am-dealer-profile-v31 strong,.am-dealer-profile-v31 small{display:block;font-size:12px}.am-dealer-profile-v31 small{color:#08975b}
.am-account-action-grid-v31{display:grid;grid-template-columns:1fr 1fr;gap:6px}.am-account-action-grid-v31 a,.am-account-action-grid-v31 button{min-height:34px;border:1px solid #dce6e1;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;padding:5px;font:inherit;font-size:12px;font-weight:750;color:#304054}
.am-offers-layout-v31{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:10px}.am-offer-table-v31{overflow:auto}.am-offer-table-v31 .head,.am-offer-table-v31 .row{display:grid;grid-template-columns:2.1fr .9fr .9fr .9fr .85fr .7fr;gap:7px;align-items:center;min-width:720px}.am-offer-table-v31 .head{padding:7px 5px;color:#758195;font-size:12px;font-weight:750;border-bottom:1px solid #e6ece9}.am-offer-table-v31 .row{padding:8px 5px;border-bottom:1px solid #edf2ef;font-size:12px}.am-offer-table-v31 .vehicle{display:grid;grid-template-columns:58px 1fr;grid-template-rows:auto auto;gap:1px 8px;align-items:center}.am-offer-table-v31 .vehicle img{grid-row:1/3;width:58px;height:42px;border-radius:6px;object-fit:cover}.am-offer-table-v31 .vehicle b,.am-offer-table-v31 .vehicle small{font-size:12px}.am-offer-table-v31 .vehicle small{color:#748096}.am-offer-table-v31 .green,.am-offer-money-v31 .green{color:#07894e;font-weight:850}.am-offer-table-v31 button{min-height:30px;border:1px solid #dce5e0;border-radius:7px;background:#fff;font:inherit;font-size:12px}.am-offer-table-v31 .status{padding:4px 7px;border-radius:20px;background:#e7f2ff;color:#2768b6;font-style:normal;font-size:12px}.am-offer-table-v31 .accepted{background:#e4f7ee;color:#08794a}.am-offer-table-v31 .expired{background:#ffeded;color:#d04343}
.am-offer-vehicle-v31{display:flex;gap:8px;align-items:center}.am-offer-vehicle-v31 img{width:80px;height:55px;border-radius:7px;object-fit:cover}.am-offer-vehicle-v31 strong,.am-offer-vehicle-v31 small{display:block;font-size:12px}.am-offer-money-v31{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.am-offer-money-v31 div{border:1px solid #edf2ef;border-radius:8px;padding:8px}.am-offer-money-v31 small,.am-offer-money-v31 b{display:block;font-size:12px}.am-offer-timeline-v31 p{position:relative;padding-left:16px;margin:10px 0;border-left:1px solid #dbe6e1}.am-offer-timeline-v31 p span{position:absolute;width:8px;height:8px;border-radius:50%;background:#0ba663;left:-4px;top:4px}.am-offer-timeline-v31 b,.am-offer-timeline-v31 small{display:block;font-size:12px}.am-offer-detail-v31>.am-account-primary-v31,.am-offer-detail-v31>.am-account-outline-v31{width:100%;margin-top:7px}
.am-drive-layout-v31{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:10px}.am-drive-list-v31{display:grid;gap:8px}.am-drive-list-v31 article{display:grid;grid-template-columns:115px 1fr auto;gap:10px;padding:7px;border:1px solid #e4ebe7;border-radius:9px;align-items:center}.am-drive-list-v31 img{width:115px;height:75px;border-radius:8px;object-fit:cover}.am-drive-list-v31 strong,.am-drive-list-v31 small{display:block;font-size:12px}.am-drive-list-v31 small{color:#748096;margin-top:3px}.am-drive-list-v31 em{font-style:normal;background:#e1f8ed;color:#07894e;padding:5px 8px;border-radius:20px;font-size:12px}.am-drive-list-v31 .actions{grid-column:2/4;display:flex;gap:6px}.am-drive-list-v31 button{min-height:32px;border:1px solid #dbe5e0;border-radius:7px;background:#fff;font:inherit;font-size:12px}.am-drive-list-v31 button:first-child{background:#0a9b5d;color:#fff;border-color:#0a9b5d}
.am-calendar-v31 strong{display:block;text-align:center;font-size:13px}.am-calendar-v31 .days,.am-calendar-v31 .dates{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:4px;margin-top:8px}.am-calendar-v31 b,.am-calendar-v31 span{font-size:12px}.am-calendar-v31 span{padding:5px;border-radius:50%}.am-calendar-v31 span.active{background:#0aa362;color:#fff}.am-checklist-v31{display:grid;gap:7px}.am-checklist-v31 label{font-size:12px;color:#405064}
.am-alert-grid-v31{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.am-alert-grid-v31 article{border:1px solid #e1e9e5;border-radius:10px;padding:10px}.am-alert-grid-v31 .top{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:7px}.am-alert-grid-v31 .top>span{width:30px;height:30px;border-radius:9px;background:#edf6f2;display:grid;place-items:center}.am-alert-grid-v31 .top strong{font-size:12px}.am-alert-grid-v31 label input{display:none}.am-alert-grid-v31 p{margin:6px 0}.am-alert-grid-v31 ul{list-style:none;padding:0;margin:0;display:grid;gap:5px}.am-alert-grid-v31 li{display:flex;justify-content:space-between;font-size:12px;color:#687689}.am-alert-grid-v31 .bottom{display:flex;align-items:center;justify-content:space-between;margin:9px 0}.am-alert-grid-v31 em{font-size:12px;color:#07975a;font-style:normal;background:#e4f8ef;border-radius:20px;padding:4px 7px}.am-alert-grid-v31>a{display:flex;align-items:center;justify-content:center;height:34px;border:1px solid #dce5e0;border-radius:8px;color:#26364a;font-size:12px;font-weight:800}
.am-account-profile-hero-v31{border-radius:14px;padding:18px;color:#fff;display:grid;grid-template-columns:78px 1fr 260px;gap:15px;align-items:center;background:linear-gradient(90deg,rgba(4,34,24,.95),rgba(5,53,36,.65),rgba(3,26,18,.88)),url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=84') center/cover}.am-account-profile-avatar-v31{width:78px;height:78px;font-size:24px;border:3px solid #fff}.am-account-profile-hero-v31 h1{margin:0 0 6px;color:#fff}.am-account-profile-hero-v31 p{margin:0 0 8px;color:#dce9e3}.am-account-profile-hero-v31 span{display:inline-block;margin-right:5px;background:#0aa362;border-radius:20px;padding:4px 7px;font-size:12px}.am-account-profile-hero-v31 small{display:block;margin-top:8px;font-size:12px;color:#dce9e3}.am-account-profile-progress-v31{border:1px solid rgba(255,255,255,.16);background:rgba(3,26,18,.55);padding:12px;border-radius:10px}.am-account-profile-progress-v31 strong,.am-account-profile-progress-v31 p{font-size:12px}.am-account-profile-progress-v31 strong b{float:right}.am-account-profile-progress-v31>div{height:6px;background:rgba(255,255,255,.16);border-radius:10px;margin:8px 0}.am-account-profile-progress-v31>div span{display:block;width:80%;height:100%;padding:0;background:#12bf74}
.am-profile-tabs-v31{display:grid;grid-template-columns:repeat(6,1fr);margin:10px 0;border:1px solid #dfe8e3;border-radius:10px;background:#fff}.am-profile-tabs-v31 button{min-height:42px;border:0;background:#fff;font:inherit;font-size:12px;font-weight:750;color:#536276}.am-profile-tabs-v31 button.active{color:#07894e;box-shadow:inset 0 -2px #0ca565}
.am-profile-grid-v31{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:10px}.am-profile-main-v31{grid-column:span 2}.am-profile-form-v31{display:grid;grid-template-columns:1fr 1fr;gap:10px}.am-profile-form-v31.one{grid-template-columns:1fr}.am-profile-form-v31 label{display:grid;gap:5px;font-size:12px;font-weight:750;color:#344458}.am-profile-form-v31 input,.am-profile-form-v31 select,.am-profile-form-v31 textarea{width:100%;min-height:38px;border:1px solid #dce5e0;border-radius:8px;padding:0 9px;font:inherit;font-size:12px;background:#fff}.am-profile-form-v31 textarea{height:70px;padding:9px;resize:vertical}.am-profile-form-v31 .full{grid-column:1/-1}.am-security-list-v31{display:grid}.am-security-list-v31 p{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #edf2ef;padding:9px 0;margin:0}.am-security-list-v31 span,.am-security-list-v31 b,.am-security-list-v31 button{font-size:12px}.am-security-list-v31 button{border:1px solid #dce5e0;border-radius:7px;background:#fff;color:#07894e}
@media(max-width:1080px){
 .am-account-shell-v31{grid-template-columns:165px minmax(0,1fr);width:calc(100% - 28px)}
 .am-account-kpis-v31{grid-template-columns:repeat(3,1fr)}
 .am-account-three-v31{grid-template-columns:1fr 1fr}.am-account-three-v31>section:last-child{grid-column:1/-1}
 .am-account-two-v31{grid-template-columns:1fr}
 .am-messages-v31{grid-template-columns:220px minmax(0,1fr)}.am-messages-v31>.am-account-right-v31{grid-column:1/-1;grid-template-columns:1fr 1fr}
 .am-profile-grid-v31{grid-template-columns:1fr 1fr}.am-profile-main-v31{grid-column:1/-1}
}
@media(max-width:820px){
 .am-account-v31{padding:10px 0 22px}.am-account-shell-v31{display:block;width:calc(100% - 20px)}
 .am-account-side-v31{position:static;margin-bottom:10px;padding:8px;overflow:auto}.am-account-user-v31,.am-account-side-promo-v31,.am-account-logout-v31,.am-account-role-links-v31{display:none}.am-account-nav-v31{display:flex;overflow:auto;padding:0;gap:5px}.am-account-nav-v31 a{min-width:max-content;grid-template-columns:18px auto auto;padding:0 10px}
 .am-account-hero-v31{min-height:180px;padding:20px}.am-account-hero-cta-v31{display:none}.am-account-hero-v31 h1{font-size:27px}
 .am-account-kpis-v31{grid-template-columns:repeat(2,1fr)}
 .am-account-favorites-layout-v31,.am-alert-layout-v31,.am-offers-layout-v31,.am-drive-layout-v31{grid-template-columns:1fr}.am-account-right-v31{grid-template-columns:1fr 1fr}
 .am-account-saved-grid-v31,.am-alert-grid-v31{grid-template-columns:repeat(2,1fr)}
 .am-messages-v31{grid-template-columns:1fr}.am-message-list-v31{max-height:420px}.am-messages-v31>.am-account-right-v31{grid-template-columns:1fr 1fr}
 .am-account-history-grid-v31{grid-template-columns:repeat(3,1fr)}
 .am-profile-tabs-v31{display:flex;overflow:auto}.am-profile-tabs-v31 button{min-width:150px}.am-account-profile-hero-v31{grid-template-columns:60px 1fr}.am-account-profile-avatar-v31{width:60px;height:60px}.am-account-profile-progress-v31{grid-column:1/-1}.am-profile-grid-v31{grid-template-columns:1fr}
}
@media(max-width:560px){
 .am-account-shell-v31{width:calc(100% - 14px)}
 .am-account-title-row-v31{align-items:flex-start;flex-direction:column}
 .am-account-kpis-v31,.am-account-kpis-3-v31,.am-account-kpis-4-v31{grid-template-columns:1fr 1fr}
 .am-account-three-v31{grid-template-columns:1fr}.am-account-three-v31>section:last-child{grid-column:auto}
 .am-account-cards-v31{display:flex;overflow:auto}.am-account-cards-v31 .am-account-vehicle-v31{min-width:210px}
 .am-account-saved-grid-v31,.am-alert-grid-v31{grid-template-columns:1fr}
 .am-account-toolbar-v31{display:grid}.am-account-chips-v31{overflow:auto;flex-wrap:nowrap}
 .am-account-right-v31,.am-messages-v31>.am-account-right-v31{grid-template-columns:1fr}
 .am-message-chat-body-v31{height:330px}
 .am-account-history-grid-v31{display:flex;overflow:auto}.am-account-history-grid-v31 .am-account-vehicle-v31{min-width:210px}
 .am-profile-form-v31{grid-template-columns:1fr}.am-profile-form-v31 .full{grid-column:auto}
 .am-account-profile-hero-v31{grid-template-columns:52px 1fr}.am-account-profile-avatar-v31{width:52px;height:52px;font-size:18px}
}


/* ============================================================
   AutoMart Buyer Account Polish V31.1
   Dashboard visual refinement + semantic/source corrections.
   ============================================================ */
.am-account-nav-icon-v31{display:grid!important;place-items:center!important;font-size:0!important}
.am-account-nav-icon-v31 svg{width:17px!important;height:17px!important;display:block!important}
.am-account-nav-v31 a.active .am-account-nav-icon-v31 svg{stroke:currentColor}

.am-account-dashboard-v311 .am-account-kpis-primary-v311{grid-template-columns:repeat(4,minmax(0,1fr))}
.am-account-dashboard-v311 .am-account-kpis-primary-v311>a{padding:14px 15px;min-height:78px}
.am-account-dashboard-v311 .am-account-kpis-primary-v311 strong{font-size:22px}
.am-account-dashboard-v311 .am-account-kpis-primary-v311 small{font-weight:750;color:#536175}

.am-account-summary-v311{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.am-account-summary-v311>a{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:11px;min-height:66px;padding:11px 13px;border:1px solid #dfe8e3;border-radius:11px;background:linear-gradient(135deg,#fff,#f7fbf9);color:#203044;box-shadow:0 4px 14px rgba(11,38,26,.035)}
.am-account-summary-v311>a>span{width:40px;height:40px;border-radius:12px;background:#e6f8ef;color:#07975a;display:grid;place-items:center;font-size:18px}
.am-account-summary-v311 small,.am-account-summary-v311 strong,.am-account-summary-v311 em{display:block;font-size:12px}
.am-account-summary-v311 small{color:#748196}.am-account-summary-v311 strong{font-size:14px;margin:2px 0}.am-account-summary-v311 em{font-style:normal;color:#07975a}.am-account-summary-v311 b{font-size:18px;color:#07894e}

.am-account-feature-panels-v311 .am-account-panel-v31{padding:14px}
.am-account-feature-panels-v311 .am-account-panel-head-v31{margin-bottom:11px}
.am-account-feature-panels-v311 .am-account-panel-head-v31 p{margin:3px 0 0;color:#7a8798}
.am-account-cards-featured-v311{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.am-account-cards-featured-v311 .am-account-vehicle-media-v31{height:138px}
.am-account-cards-featured-v311 .am-account-vehicle-body-v31{padding:11px}
.am-account-cards-featured-v311 .am-account-vehicle-title-v31{font-size:13px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3;min-height:34px}
.am-account-cards-featured-v311 .am-account-vehicle-price-v31{font-size:17px;margin-top:6px}
.am-account-cards-featured-v311 .am-account-vehicle-facts-v31{margin-top:9px}

.am-account-bottom-v311{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:10px;margin-top:10px}
.am-account-bottom-stack-v311{display:grid;gap:10px;align-content:start}
.am-account-messages-wide-v311 .am-account-list-v31>a{min-height:54px;grid-template-columns:38px minmax(0,1fr) auto;gap:10px}
.am-account-messages-wide-v311 .am-account-list-avatar-v31{width:38px;height:38px;flex-basis:38px}
.am-account-messages-wide-v311 .am-account-list-v31 strong{font-size:13px}.am-account-messages-wide-v311 .am-account-list-v31 small{margin-top:2px}

/* prevent over-compression in the right stack */
.am-account-bottom-stack-v311 .am-account-event-v31>div{grid-template-columns:62px minmax(0,1fr) auto;padding:7px}
.am-account-bottom-stack-v311 .am-account-event-v31 img{width:62px;height:48px}

@media(max-width:1080px){
 .am-account-dashboard-v311 .am-account-kpis-primary-v311{grid-template-columns:repeat(2,1fr)}
 .am-account-bottom-v311{grid-template-columns:1fr}
 .am-account-bottom-stack-v311{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
 .am-account-summary-v311{grid-template-columns:1fr 1fr}
 .am-account-cards-featured-v311 .am-account-vehicle-media-v31{height:125px}
 .am-account-bottom-stack-v311{grid-template-columns:1fr}
}
@media(max-width:560px){
 .am-account-dashboard-v311 .am-account-kpis-primary-v311{grid-template-columns:1fr 1fr}
 .am-account-summary-v311{grid-template-columns:1fr}
 .am-account-cards-featured-v311{display:flex;overflow:auto;gap:9px}
 .am-account-cards-featured-v311 .am-account-vehicle-v31{min-width:235px}
 .am-account-cards-featured-v311 .am-account-vehicle-media-v31{height:145px}
}
