:root{
  --am-bg:#f5f3ee;
  --am-card:#ffffff;
  --am-card-soft:#fbfbf9;
  --am-ink:#12211e;
  --am-muted:#6d7874;
  --am-line:#dde3df;
  --am-green:#103f38;
  --am-green-2:#1d5a4f;
  --am-green-3:#dfeee8;
  --am-shadow:0 18px 40px rgba(17,39,34,.08);
  --am-radius:24px;
  --am-max:1480px;
}
*{box-sizing:border-box}
html,body{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;background:var(--am-bg);color:var(--am-ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;overflow-x:hidden}
body.automarket-app-page #wpadminbar{display:none!important}
body.automarket-app-page{margin-top:0!important}
a{color:inherit;text-decoration:none}button,input,select{font:inherit}
.automarket-template-root,.automarket-shell,.automarket-main{width:100%;max-width:none!important;margin:0!important}
.automarket-shell{min-height:100vh;padding-bottom:0}
.automarket-main{min-height:calc(100vh - 100px)}
.am-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.am-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.automarket-header{position:sticky;top:0;z-index:80;background:rgba(245,243,238,.93);backdrop-filter:blur(16px);border-bottom:1px solid rgba(18,33,30,.08)}
.header-inner{height:82px;max-width:var(--am-max);margin:auto;padding:0 32px;display:flex;align-items:center;gap:28px}
.am-brand{display:flex;align-items:center;gap:12px;min-width:250px}
.brand-mark{width:42px;height:42px;border-radius:14px;background:var(--am-green);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:800;letter-spacing:.8px}
.am-brand strong{display:block;font-size:16px;letter-spacing:-.2px}.am-brand small{display:block;font-size:10px;color:var(--am-muted);letter-spacing:.85px;text-transform:uppercase;margin-top:2px}
.desktop-nav{display:flex;align-items:center;gap:28px;flex:1}
.desktop-nav a{font-size:14px;color:#5f6d69;padding:30px 0 27px;border-bottom:3px solid transparent}
.desktop-nav a.active,.desktop-nav a:hover{color:var(--am-ink);border-color:var(--am-green)}
.header-actions{display:flex;align-items:center;gap:10px}
.icon-button,.account-button{height:42px;border:1px solid var(--am-line);background:#fff;border-radius:13px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.03)}
.icon-button{width:42px}.account-button{padding:0 14px;gap:8px;font-size:13px;font-weight:700}.account-button.alt{background:#f8fbfa}.account-button .am-icon{width:18px}
.demo-banner{min-height:36px;background:#0f4b43;color:#edf6f2;display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 18px;font-size:11px}.demo-banner strong{font-size:10px;letter-spacing:1.1px;color:#fff}.demo-banner span{opacity:.85}

.hero{max-width:var(--am-max);margin:0 auto;padding:68px 32px 42px;display:grid;grid-template-columns:1.03fr .97fr;gap:58px;align-items:center}
.kicker,.eyebrow{display:block;color:var(--am-green-2);font-size:11px;font-weight:800;letter-spacing:1.7px;text-transform:uppercase;margin-bottom:14px}
.hero h1{font-size:clamp(56px,6vw,86px);line-height:.94;letter-spacing:-4px;margin:0 0 24px;font-weight:760}
.hero h1 em{font-style:normal;color:var(--am-green-2)}
.hero-copy>p{font-size:19px;line-height:1.62;color:#52605c;max-width:670px;margin:0 0 28px}
.hero-search{display:flex;align-items:center;gap:12px;max-width:720px;background:#fff;border:1px solid var(--am-line);border-radius:18px;box-shadow:var(--am-shadow);padding:7px 8px 7px 18px;height:66px}
.hero-search input{border:0;outline:0;background:transparent;flex:1;font-size:15px;color:var(--am-ink);min-width:0}.hero-search button{height:50px;border:0;border-radius:14px;background:var(--am-green);color:#fff;padding:0 24px;font-weight:800;cursor:pointer}
.chip-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.mini-chip{display:inline-flex;align-items:center;gap:7px;padding:10px 12px;border-radius:999px;background:#edf4f1;color:var(--am-green);font-size:12px;font-weight:700}.mini-chip .am-icon{width:16px;height:16px}
.hero-visual{min-height:500px;position:relative}.hero-card-main{height:448px;border-radius:34px;background:linear-gradient(145deg,#dbe7e1,#eef1ea);position:relative;overflow:hidden;box-shadow:0 30px 70px rgba(16,63,56,.14)}
.hero-card-main:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.42);right:-90px;top:-120px}
.hero-card-main img{position:absolute;left:6%;width:88%;bottom:86px;filter:drop-shadow(0 26px 24px rgba(0,0,0,.14))}
.floating-badge,.source-pill,.verified-label,.agent-verified,.ai-live-pill{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.94);border:1px solid rgba(16,63,56,.08);border-radius:999px;padding:8px 12px;font-size:11px;font-weight:800;color:var(--am-green)}
.floating-badge{position:absolute;left:26px;top:24px;z-index:2}
.hero-car-copy{position:absolute;left:26px;right:26px;bottom:24px;display:flex;align-items:end;gap:10px}.hero-car-copy small{position:absolute;bottom:30px;color:#63716d;font-size:10px;text-transform:uppercase;letter-spacing:1px}.hero-car-copy strong{font-size:21px;flex:1}.hero-car-copy span{font-size:14px;font-weight:800;color:var(--am-green)}
.mini-proof{position:absolute;background:#fff;border:1px solid var(--am-line);box-shadow:var(--am-shadow);border-radius:16px;padding:14px 18px;display:flex;gap:10px;align-items:center}.mini-proof b{font-size:24px;color:var(--am-green)}.mini-proof span{font-size:11px;line-height:1.2;color:#5f6b68;max-width:100px}.proof-one{left:-24px;bottom:6px}.proof-two{right:-12px;top:76px}

.metric-strip{max-width:var(--am-max);margin:0 auto 52px;padding:0 32px;display:grid;grid-template-columns:repeat(4,1fr)}
.metric-strip>div{padding:22px 28px;border-top:1px solid var(--am-line);border-bottom:1px solid var(--am-line);border-right:1px solid var(--am-line)}
.metric-strip>div:first-child{border-left:1px solid var(--am-line);border-radius:16px 0 0 16px}.metric-strip>div:last-child{border-radius:0 16px 16px 0}.metric-strip b{display:block;font-size:28px}.metric-strip span{font-size:12px;color:var(--am-muted)}

.role-strip,.am-section,.page-head,.catalog-tools,.catalog-count,.detail-back,.dashboard-head,.dash-stats,.dashboard-grid,.sell-layout,.ai-layout,.access-panel{max-width:var(--am-max);margin:0 auto}
.role-strip,.am-section{padding:28px 32px 68px}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.section-title h2{font-size:34px;letter-spacing:-1.3px;margin:0}.section-title .kicker{margin-bottom:6px}.section-title>a{display:flex;align-items:center;gap:8px;color:var(--am-green);font-size:13px;font-weight:800}.section-title>a .am-icon{width:16px}
.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.role-card{background:#fff;border:1px solid var(--am-line);border-radius:var(--am-radius);padding:24px;box-shadow:0 8px 28px rgba(18,33,30,.04)}.role-icon{width:44px;height:44px;display:grid;place-items:center;background:#edf4f1;border-radius:14px;color:var(--am-green);margin-bottom:14px}.role-card h3{font-size:24px;line-height:1.1;letter-spacing:-.8px;margin:0 0 10px}.role-card p{margin:0 0 14px;color:#61706b;line-height:1.65}.role-card ul{margin:0;padding-left:18px;color:#2a3835}.role-card li{margin:7px 0;font-size:14px}

.vehicle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.vehicle-card{background:#fff;border:1px solid var(--am-line);border-radius:var(--am-radius);overflow:hidden;box-shadow:0 8px 28px rgba(18,33,30,.05);transition:.22s ease}.vehicle-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(18,33,30,.09)}
.vehicle-image{height:238px;display:block;position:relative;overflow:hidden;background:linear-gradient(150deg,#ecf0ed,#dfe7e2)}.vehicle-image img{width:100%;height:100%;object-fit:cover;transition:.35s}.vehicle-card:hover .vehicle-image img{transform:scale(1.03)}.source-pill{position:absolute;left:14px;top:14px}.source-pill .am-icon{width:14px;height:14px}.save-car{position:absolute;right:14px;top:14px;width:40px;height:40px;border-radius:50%;border:1px solid rgba(17,33,30,.08);background:rgba(255,255,255,.95);display:grid;place-items:center;cursor:pointer;color:#5f6d68}.save-car .am-icon{width:18px}.save-car.saved{background:var(--am-green);color:#fff}.save-car.saved svg{fill:currentColor}
.vehicle-copy{padding:18px}.vehicle-title-row{display:flex;gap:12px;align-items:flex-start}.vehicle-title-row>div{min-width:0;flex:1}.vehicle-title-row small{font-size:10px;color:var(--am-muted);text-transform:uppercase;letter-spacing:.7px}.vehicle-title-row h3{font-size:18px;margin:6px 0 0;letter-spacing:-.3px}.stock-dot{font-size:10px;background:#edf5f0;color:#2d6a58;border-radius:999px;padding:6px 8px;white-space:nowrap}
.spec-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.spec-row span{display:inline-flex;align-items:center;gap:5px;background:#f4f7f5;border-radius:9px;padding:7px 9px;color:#54635d;font-size:11px}.spec-row .am-icon{width:14px;height:14px;color:var(--am-green)}
.card-source{border-top:1px solid #edf0ed;border-bottom:1px solid #edf0ed;padding:12px 0;display:flex;gap:9px;align-items:center}.source-avatar{width:30px;height:30px;border-radius:9px;background:var(--am-green-3);color:var(--am-green);display:grid;place-items:center;font-size:11px;font-weight:900}.card-source small,.price-row small{display:block;color:#87908d;font-size:9px;text-transform:uppercase;letter-spacing:.75px}.card-source b{display:block;font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price-row{display:flex;align-items:end;justify-content:space-between;padding-top:14px;gap:10px}.price-row strong{font-size:18px;letter-spacing:-.4px}.price-row>a{display:flex;align-items:center;gap:4px;color:var(--am-green);font-size:11px;font-weight:800}.price-row .am-icon{width:14px}

.network-panel{max-width:calc(var(--am-max) - 64px);margin:6px auto 58px;padding:56px;background:var(--am-green);color:#fff;border-radius:30px;display:grid;grid-template-columns:.82fr 1.18fr;gap:52px;align-items:center;position:relative;overflow:hidden}.network-panel:after{content:"";position:absolute;width:380px;height:380px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-130px;top:-210px}.network-panel .kicker{color:#b6d5cc}.network-panel h2{font-size:42px;line-height:1.04;letter-spacing:-1.7px;margin:0 0 14px}.network-panel p{margin:0 0 24px;color:#d4e2de;line-height:1.7}.am-btn{height:46px;border-radius:13px;border:0;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;cursor:pointer;text-decoration:none}.am-btn.dark{background:#fff;color:var(--am-green)}.am-btn.primary{background:var(--am-green);color:#fff}.am-btn.outline{border:1px solid var(--am-line);background:#fff;color:var(--am-ink)}.am-btn.ghost{border:1px solid rgba(16,63,56,.14);background:#f3f7f4;color:var(--am-green)}.am-btn.wide{width:100%}
.network-flow{display:flex;align-items:center;justify-content:space-between;gap:16px}.network-flow>i{font-style:normal;opacity:.5}.flow-node{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:18px;min-height:118px;display:flex;flex-direction:column;justify-content:flex-end;flex:1}.flow-node span{display:block;font-size:11px;color:#b4d1ca;margin-bottom:10px}.flow-node b{font-size:20px}.flow-node small{display:block;margin-top:5px;color:#d9e7e2;font-size:12px;line-height:1.5}

.importer-grid,.agent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.importer-grid.large,.agent-grid{padding:0 32px 56px}
.importer-card,.agent-card,.dash-panel,.sell-form,.sell-aside,.ai-chat-card,.ai-side-card,.market-access-card,.access-card{background:#fff;border:1px solid var(--am-line);border-radius:var(--am-radius);box-shadow:0 8px 28px rgba(18,33,30,.05)}
.importer-cover{display:block;height:190px;background-size:cover;background-position:center;position:relative;border-radius:var(--am-radius) var(--am-radius) 0 0;overflow:hidden}.importer-cover img{position:absolute;left:24px;bottom:24px;width:62px;height:62px;border-radius:18px;background:#fff;padding:8px}.importer-cover span{position:absolute;right:20px;top:18px;background:#fff;color:var(--am-green);border-radius:999px;padding:10px 13px;font-size:12px;font-weight:800}
.importer-copy{padding:20px 22px}.importer-copy h3{font-size:18px;margin:0 0 8px}.importer-copy p{color:#6c7874;line-height:1.62;margin:0 0 12px}.importer-meta{display:flex;gap:14px;flex-wrap:wrap;color:#687570;font-size:13px;margin-bottom:12px}.importer-meta span{display:flex;align-items:center;gap:5px}.brand-tags{display:flex;flex-wrap:wrap;gap:8px}.brand-tags span{padding:8px 11px;border-radius:999px;background:#f2f5f3;color:#5f6d68;font-size:12px}.importer-footer{margin-top:16px;padding-top:16px;border-top:1px solid #eef1ee;display:flex;align-items:center;justify-content:space-between;gap:10px}.importer-footer strong{font-size:13px}.importer-footer a{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:var(--am-green)}

.page-head{padding:50px 32px 24px}.page-head.narrow{max-width:1040px}.page-head h1{font-size:62px;line-height:.96;letter-spacing:-2.5px;margin:0 0 14px}.page-head p{font-size:18px;color:#67736f;line-height:1.62;max-width:860px;margin:0}
.catalog-tools{padding:0 32px 18px}.catalog-search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--am-line);border-radius:16px;padding:0 16px;height:58px;max-width:520px}.catalog-search input{border:0;outline:0;background:transparent;flex:1;min-width:0}.filter-row{display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap}.filter-chip{height:38px;border:1px solid var(--am-line);background:#fff;border-radius:999px;padding:0 14px;cursor:pointer}.filter-chip.active{background:var(--am-green);color:#fff;border-color:var(--am-green)}.filter-row select{height:38px;border:1px solid var(--am-line);background:#fff;border-radius:12px;padding:0 12px}.catalog-count{padding:0 32px 12px;color:#68746f;font-size:14px}.catalog-grid,.saved-grid{padding:0 32px 52px}
.empty-state{max-width:620px;margin:0 auto 60px;padding:36px;text-align:center;background:#fff;border:1px solid var(--am-line);border-radius:var(--am-radius)}.empty-state>span{width:52px;height:52px;display:grid;place-items:center;background:#edf4f1;color:var(--am-green);border-radius:16px;margin:0 auto 12px}.empty-state h3{font-size:24px;margin:0 0 8px}.empty-state p{color:#66726e;line-height:1.6;margin:0 0 16px}

.detail-back{padding:28px 32px 12px}.detail-back a{font-size:14px;font-weight:700;color:var(--am-green)}
.vehicle-detail{max-width:var(--am-max);margin:0 auto;padding:0 32px 58px;display:grid;grid-template-columns:1fr 1fr;gap:34px}.detail-image{height:460px;position:relative;background:linear-gradient(145deg,#ecf0ed,#dfe7e2);border-radius:28px;overflow:hidden}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-image .source-pill{left:18px;top:18px}
.thumb-row{display:flex;gap:12px;margin-top:12px}.thumb-row button{width:86px;height:74px;border-radius:16px;border:1px solid var(--am-line);background:#fff;padding:8px;cursor:pointer}.thumb-row button.active{border-color:var(--am-green)}.thumb-row img{width:100%;height:100%;object-fit:cover}
.detail-copy h1{font-size:44px;line-height:1.02;letter-spacing:-1.8px;margin:6px 0 12px}.detail-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#60706a;font-size:14px}.text-save{gap:8px}.detail-price{font-size:34px;font-weight:800;margin:0 0 12px}.detail-desc{color:#64716d;line-height:1.75;margin:0 0 18px}.spec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.spec-grid>div{background:#fff;border:1px solid var(--am-line);border-radius:16px;padding:14px}.spec-grid small{display:block;font-size:11px;color:#7a8581;text-transform:uppercase;letter-spacing:.7px}.spec-grid b{display:block;margin-top:4px;font-size:15px}
.verified-source-box{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;border:1px solid var(--am-line);background:#f8fbfa;border-radius:18px;padding:16px;margin-bottom:18px}.verified-source-box img{width:58px;height:58px;border-radius:16px;background:#fff;padding:8px}.verified-source-box small{display:block;color:#7a8580;font-size:10px;letter-spacing:.75px}.verified-source-box h3{margin:2px 0 4px;font-size:17px}.verified-source-box p{margin:0;color:#66736f;font-size:13px}.verified-source-box a{font-size:13px;font-weight:800;color:var(--am-green)}
.detail-actions{display:flex;gap:12px;flex-wrap:wrap}.transaction-note{margin:16px 0 0;color:#697570;line-height:1.6;font-size:14px}

.profile-hero{max-width:var(--am-max);margin:0 auto 18px;padding:34px;min-height:260px;border-radius:30px;background-size:cover;background-position:center;display:grid;grid-template-columns:auto 1fr;align-items:end;gap:24px;color:#fff}.profile-hero>img{width:84px;height:84px;border-radius:22px;background:#fff;padding:10px}.profile-hero h1{font-size:44px;letter-spacing:-1.7px;line-height:1.02;margin:8px 0 10px}.profile-hero p{margin:0 0 12px;color:#dfe9e5;max-width:780px;line-height:1.65}.verified-label{background:rgba(255,255,255,.13);backdrop-filter:blur(12px);border-color:rgba(255,255,255,.18);color:#fff}.profile-meta{display:flex;flex-wrap:wrap;gap:16px;color:#ebf2ef;font-size:13px}.profile-meta span{display:flex;align-items:center;gap:6px}
.agent-profile{max-width:var(--am-max);margin:0 auto 16px;padding:24px 28px;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center}.agent-avatar{width:72px;height:72px;border-radius:20px;background:linear-gradient(145deg,#0e5a4f,#0b7666);display:grid;place-items:center;color:#fff;font-size:28px;font-weight:800}.agent-avatar.xl{width:84px;height:84px;font-size:32px}.agent-profile h1{font-size:36px;line-height:1;margin:6px 0 10px}.agent-profile p{margin:0 0 10px;color:#65736e;line-height:1.65}
.agent-card{padding:22px}.agent-card.large{padding:26px}.agent-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:16px}.agent-card h3{font-size:18px;margin:0 0 10px}.agent-card p{margin:0 0 16px;color:#66736e;line-height:1.65}.agent-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0;padding:14px 0;border-top:1px solid #eef1ee;border-bottom:1px solid #eef1ee}.agent-stat-row span{text-align:center}.agent-stat-row b{display:block;font-size:22px}.agent-stat-row small{display:block;color:#7a8682;font-size:12px}.agent-link{margin-top:18px;display:flex;align-items:center;justify-content:space-between;color:var(--am-green);font-weight:800}
.showroom-banner{max-width:var(--am-max);margin:0 auto 8px;padding:24px 28px;background:#f0f5f2;border:1px solid var(--am-line);border-radius:24px;display:flex;align-items:center;justify-content:space-between;gap:18px}.showroom-banner h2{margin:6px 0 10px;font-size:29px;letter-spacing:-1px}.showroom-banner p{margin:0;color:#65736f;line-height:1.65;max-width:800px}.showroom-count{width:82px;height:82px;border-radius:22px;background:var(--am-green);color:#fff;display:grid;place-items:center;font-size:28px;font-weight:800}.showroom-count small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.8px}

.sell-layout{padding:0 32px 58px;display:grid;grid-template-columns:1.12fr .88fr;gap:24px}.sell-form,.sell-aside{padding:24px}.form-section{display:grid;grid-template-columns:54px 1fr;gap:16px;padding:18px 0;border-bottom:1px solid #eef1ee}.form-section:last-of-type{border-bottom:0}.form-section>span{width:42px;height:42px;border-radius:14px;background:#edf4f1;color:var(--am-green);display:grid;place-items:center;font-weight:800}.form-section h3{margin:0 0 12px;font-size:22px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid label,.choice{display:block;font-size:13px;color:#5d6b66}.form-grid label input{display:block;width:100%;margin-top:8px;height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--am-line);background:#fff}.form-grid .full{grid-column:1/-1}.choice{margin:10px 0}.choice input{margin-right:8px}.sell-aside{background:#0f4b43;color:#fff;position:sticky;top:110px;height:max-content}.aside-icon{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.12);display:grid;place-items:center;margin-bottom:12px}.sell-aside h3{font-size:26px;margin:0 0 10px}.sell-aside p{color:#d6e5e0;line-height:1.7;margin:0 0 16px}.sell-aside ul{margin:0;padding-left:18px}.sell-aside li{margin:8px 0;color:#ebf3ef}

.dashboard-head{padding:46px 32px 22px;display:flex;justify-content:space-between;align-items:end;gap:20px}.dashboard-head h1{font-size:42px;letter-spacing:-1.7px;margin:8px 0 10px}.dashboard-head p{margin:0;color:#67746f;line-height:1.7;max-width:760px}.dash-stats{padding:0 32px 16px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.dash-stats>div{background:#fff;border:1px solid var(--am-line);border-radius:20px;padding:18px 18px 16px}.dash-stats small{display:block;color:#7a8681;font-size:11px;text-transform:uppercase;letter-spacing:.75px}.dash-stats b{display:block;font-size:28px;margin:5px 0}.dash-stats em{font-style:normal;color:#5e6b67;font-size:12px}
.access-panel{padding:0 32px 18px;display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.access-panel.wide{padding-top:4px}.access-card{padding:22px}.access-card small{display:block;color:#7c8783;font-size:11px;text-transform:uppercase;letter-spacing:.75px}.access-card h3{font-size:24px;margin:7px 0 8px}.access-card p{margin:0;color:#66736f;line-height:1.65}
.dashboard-grid{padding:0 32px 18px;display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.dash-panel{padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.panel-head h2{font-size:24px;letter-spacing:-.8px;margin:0}.panel-head a{color:var(--am-green);font-size:13px;font-weight:800}
.dash-list,.lead-list{display:grid;gap:12px}.dash-list>div{display:grid;grid-template-columns:74px 1fr auto auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid #eef1ee}.dash-list>div:first-child{border-top:0;padding-top:0}.dash-list img{width:74px;height:54px;object-fit:cover;border-radius:14px;background:#eef3f0}.dash-list span b{display:block;font-size:15px}.dash-list span small{display:block;color:#6d7874;margin-top:4px}.dash-list strong{font-size:14px}.dash-list>div>button{width:34px;height:34px;border:1px solid var(--am-line);background:#fff;border-radius:10px;cursor:pointer}.dist-pill{padding:7px 10px;border-radius:999px;background:#edf4f1;color:var(--am-green);font-size:12px;font-weight:800}
.lead-list>div{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #eef1ee}.lead-list>div:first-child{border-top:0;padding-top:0}.lead-list span{width:40px;height:40px;border-radius:14px;background:#edf4f1;color:var(--am-green);display:grid;place-items:center;font-weight:800}.lead-list p{margin:0}.lead-list p b{display:block;font-size:14px}.lead-list p small{display:block;color:#6c7874;margin-top:4px}.lead-list em{font-style:normal;color:var(--am-green);font-weight:800;font-size:12px}
.market-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.market-access-card{padding:18px;display:grid;grid-template-columns:84px 1fr auto;align-items:center;gap:14px}.market-access-card img{width:84px;height:64px;object-fit:cover;border-radius:14px;background:#eef3f0}.market-access-card small{display:block;color:#7a8682;font-size:10px;text-transform:uppercase;letter-spacing:.75px}.market-access-card h3{font-size:18px;margin:4px 0 6px}.market-access-card p{margin:0;color:#64716d;font-size:13px;line-height:1.55}.market-access-card strong{font-size:15px}
.performance-table{background:#fff;border:1px solid var(--am-line);border-radius:24px;overflow:hidden;box-shadow:0 8px 28px rgba(18,33,30,.05)}.perf-head,.perf-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:12px;padding:16px 18px;align-items:center}.perf-head{background:#f5f8f6;color:#6e7a76;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.75px}.perf-row{border-top:1px solid #eef1ee;font-size:14px}.perf-row span:first-child{font-weight:700}.perf-tag{display:inline-flex;justify-content:center;padding:8px 10px;border-radius:999px;background:#edf4f1;color:var(--am-green);font-size:12px;font-weight:800}.perf-tag.good{background:#dff3ea}
.ring-stat{display:flex;align-items:center;justify-content:center;min-height:148px;background:#f5f8f6;border-radius:20px;margin-bottom:16px}.ring-stat b{display:block;font-size:38px}.ring-stat small{display:block;color:#66736f;line-height:1.5;text-align:center;max-width:180px}.summary-list{list-style:none;margin:0;padding:0}.summary-list li{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #eef1ee}.summary-list li:first-child{border-top:0}.summary-list span{color:#65726d}.summary-list b{font-size:14px}

.ai-panel{max-width:calc(var(--am-max) - 64px);margin:0 auto 64px;padding:24px 26px;background:#fff;border:1px solid var(--am-line);border-radius:28px;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center}.ai-mark{width:58px;height:58px;border-radius:18px;background:#edf4f1;color:var(--am-green);display:grid;place-items:center}.ai-panel h2{font-size:30px;margin:4px 0 8px;letter-spacing:-1px}.ai-panel p{margin:0;color:#65726d;line-height:1.65}
.ai-layout{padding:0 32px 62px;display:grid;grid-template-columns:1.15fr .85fr;gap:20px}.ai-chat-card{padding:22px}.ai-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.ai-chat-head h2{margin:0 0 6px;font-size:30px;letter-spacing:-1px}.ai-chat-head p{margin:0;color:#67746f;line-height:1.6}.ai-chip-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.ai-chip-row button{height:38px;border:1px solid var(--am-line);background:#f5f8f6;border-radius:999px;padding:0 14px;cursor:pointer;color:var(--am-green);font-size:12px;font-weight:800}
.ai-messages{height:420px;overflow:auto;padding:10px 4px;display:grid;gap:12px}.ai-msg{max-width:88%;padding:14px 16px;border-radius:18px;line-height:1.65;font-size:14px}.ai-msg b{display:block;margin-bottom:6px;font-size:12px;text-transform:uppercase;letter-spacing:.75px}.ai-msg p{margin:0}.ai-msg ul{margin:10px 0 0;padding-left:18px}.ai-msg li{margin:6px 0}.ai-msg.ai{background:#f3f7f4;border:1px solid #e3ebe6}.ai-msg.user{margin-left:auto;background:var(--am-green);color:#fff}.ai-input-row{display:flex;gap:10px;margin-top:10px}.ai-input-row input{flex:1;height:54px;border:1px solid var(--am-line);border-radius:16px;padding:0 16px;background:#fff}.ai-input-row button{height:54px;border:0;border-radius:16px;background:var(--am-green);color:#fff;padding:0 22px;font-weight:800;cursor:pointer}.ai-side{display:grid;gap:16px}.ai-side-card{padding:22px}.ai-side-card small{display:block;color:#7a8681;font-size:11px;text-transform:uppercase;letter-spacing:.75px}.ai-side-card h3{font-size:24px;margin:7px 0 10px;letter-spacing:-.8px}.ai-side-card p{margin:0;color:#66736f;line-height:1.7}.ai-side-card ul{margin:0;padding-left:18px}.ai-side-card li{margin:8px 0;color:#2d3835}
.ai-fab{position:fixed;right:18px;bottom:88px;z-index:75;display:inline-flex;align-items:center;gap:9px;padding:0 16px;height:48px;border-radius:999px;background:var(--am-green);color:#fff;box-shadow:0 14px 32px rgba(16,63,56,.28);font-weight:800}
.automarket-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#102d28;color:#fff;border-radius:12px;padding:12px 16px;font-size:11px;font-weight:700;opacity:0;pointer-events:none;transition:.25s;z-index:100}.automarket-toast.show{opacity:1;transform:translate(-50%,0)}
.mobile-nav{display:none}

@media(max-width:1100px){
  .desktop-nav{display:none}.header-inner{justify-content:space-between}.hero{grid-template-columns:1fr;gap:34px;padding-top:48px}.hero-visual{max-width:760px;width:100%;margin:auto}.role-grid,.vehicle-grid,.importer-grid,.agent-grid{grid-template-columns:repeat(2,1fr)}.vehicle-detail,.sell-layout,.ai-layout,.dashboard-grid,.network-panel{grid-template-columns:1fr}.market-access-grid{grid-template-columns:1fr}.dash-stats{grid-template-columns:repeat(2,1fr)}.profile-hero{grid-template-columns:auto 1fr}.access-panel{grid-template-columns:1fr}
}
@media(max-width:700px){
  .automarket-shell{padding-bottom:78px}.automarket-main{min-height:calc(100vh - 78px)}
  .header-inner{height:62px;padding:0 14px;gap:12px}.am-brand{min-width:0}.am-brand small,.header-actions .account-button{display:none}.brand-mark{width:36px;height:36px;border-radius:12px}.demo-banner{justify-content:flex-start;overflow:auto;white-space:nowrap;padding:7px 14px;font-size:9px}.demo-banner strong{font-size:8px}
  .hero{padding:38px 16px 28px;display:block}.hero h1{font-size:46px;letter-spacing:-2.5px}.hero-copy>p{font-size:15px}.hero-search{height:58px;padding-left:14px}.hero-search button{height:44px;padding:0 14px;font-size:11px}.hero-visual{min-height:340px;margin-top:28px}.hero-card-main{height:320px;border-radius:24px}.hero-card-main img{bottom:76px}.hero-car-copy{left:18px;right:18px;bottom:18px}.hero-car-copy strong{font-size:17px}.proof-one{left:6px;bottom:-18px}.proof-two{right:8px;top:55px}.mini-proof{padding:10px 12px}.mini-proof b{font-size:18px}.mini-proof span{font-size:9px}
  .metric-strip{padding:0 16px;margin:18px auto 34px;grid-template-columns:repeat(2,1fr);gap:8px}.metric-strip>div,.metric-strip>div:first-child,.metric-strip>div:last-child{border:1px solid var(--am-line);border-radius:12px;padding:14px}.metric-strip b{font-size:21px}.metric-strip span{font-size:9px}
  .role-strip,.am-section{padding:22px 16px 44px}.section-title h2{font-size:28px}.section-title>a{font-size:10px}.role-grid,.vehicle-grid,.importer-grid,.agent-grid{grid-template-columns:1fr;gap:14px}.network-panel{max-width:none;margin:0 16px 44px;padding:30px 22px;border-radius:24px}.network-panel h2{font-size:32px}.network-flow{flex-direction:column;align-items:stretch}.network-flow>i{transform:rotate(90deg);text-align:center}.flow-node{width:100%;min-height:98px}
  .importer-grid.large,.agent-grid{padding:0 16px 46px}.page-head{padding:40px 16px 22px}.page-head h1{font-size:38px}.page-head p{font-size:15px}.catalog-tools{padding:0 16px 18px}.catalog-count{padding:0 16px 10px}.catalog-grid,.saved-grid{padding:0 16px 50px}.vehicle-image{height:220px}.vehicle-copy{padding:15px}
  .detail-back{padding:22px 16px 12px}.vehicle-detail{padding:0 16px 46px;gap:22px}.detail-image{height:320px;border-radius:22px}.detail-copy h1{font-size:34px}.detail-price{font-size:28px}.spec-grid{grid-template-columns:repeat(2,1fr)}.verified-source-box{grid-template-columns:auto 1fr}.verified-source-box a{grid-column:2}
  .profile-hero{max-width:none;margin:0 16px 16px;padding:28px 22px;display:block;min-height:auto}.profile-hero>img{width:72px;height:72px}.profile-hero h1{font-size:30px}.agent-profile{max-width:none;margin:0 16px 14px;padding:22px;grid-template-columns:auto 1fr}.agent-profile .am-btn{grid-column:1/-1;width:100%}.agent-profile h1{font-size:28px}.showroom-banner{max-width:none;margin:0 16px 8px;padding:22px;display:block}.showroom-count{margin-top:16px;width:66px;height:66px;font-size:24px}
  .sell-layout{padding:0 16px 52px}.sell-form,.sell-aside{padding:18px}.form-section{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.sell-aside{position:static}
  .dashboard-head{padding:38px 16px 20px;display:block}.dashboard-head h1{font-size:34px}.dashboard-head .am-btn{margin-top:14px}.dash-stats{padding:0 16px 14px;grid-template-columns:1fr 1fr;gap:8px}.dash-stats>div{padding:14px}.dash-stats b{font-size:22px}.access-panel{padding:0 16px 14px}.dashboard-grid{padding:0 16px 14px}.dash-list>div{grid-template-columns:54px 1fr auto}.dash-list img{width:54px;height:44px}.dash-list>div>button,.dist-pill{display:none}.market-access-card{grid-template-columns:64px 1fr;align-items:start}.market-access-card img{width:64px;height:50px}.market-access-card strong,.market-access-card .am-btn{grid-column:2}
  .performance-table{border-radius:18px}.perf-head,.perf-row{grid-template-columns:1.6fr .8fr .8fr .9fr 1fr;padding:12px;font-size:12px}
  .ai-panel{max-width:none;margin:0 16px 46px;padding:20px;border-radius:22px;grid-template-columns:auto 1fr}.ai-panel .am-btn{grid-column:1/-1}.ai-panel h2{font-size:26px}.ai-layout{padding:0 16px 52px;grid-template-columns:1fr}.ai-chat-card,.ai-side-card{padding:18px}.ai-chat-head{display:block}.ai-live-pill{margin-top:12px}.ai-messages{height:360px}.ai-input-row{display:grid;grid-template-columns:1fr}.ai-input-row button{width:100%}
  .ai-fab{height:46px;right:14px;bottom:82px;padding:0 14px;font-size:13px}
  .mobile-nav{position:fixed;left:0;right:0;bottom:0;height:68px;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid var(--am-line);z-index:70;display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#79837f}.mobile-nav a.active{color:var(--am-green)}.mobile-nav .am-icon{width:20px;height:20px}.mobile-nav small{font-size:8px;font-weight:700}.automarket-toast{bottom:86px;width:calc(100% - 32px);text-align:center}
}
/* Lidu AI live integration */
.ai-answer-text{white-space:pre-wrap;line-height:1.7}
.ai-thinking{opacity:.72}
.ai-sources{margin-top:12px;padding-top:10px;border-top:1px solid rgba(16,63,56,.12);display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ai-sources small{width:100%;font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#74817c;font-weight:800}
.ai-sources a{display:inline-flex;max-width:100%;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid var(--am-line);color:var(--am-green);font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-message-actions{margin-top:12px}.ai-request-link{font-size:12px;font-weight:800;color:var(--am-green);text-decoration:underline;text-underline-offset:3px}
.ai-msg.user .ai-request-link{color:#fff}
.ai-input-row button:disabled,.ai-input-row input:disabled,.am-btn:disabled{opacity:.55;cursor:not-allowed}
.form-grid textarea{display:block;width:100%;margin-top:8px;padding:12px 14px;border-radius:12px;border:1px solid var(--am-line);background:#fff;resize:vertical;min-height:100px}

/* Language selector */
.language-picker{height:42px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--am-line);background:#fff;border-radius:13px;box-shadow:0 4px 12px rgba(0,0,0,.03);color:var(--am-ink)}
.language-globe{font-size:11px;font-weight:900;color:var(--am-green);letter-spacing:-.2px;white-space:nowrap}
.language-picker select{border:0;outline:0;background:transparent;color:var(--am-ink);font-size:12px;font-weight:750;max-width:118px;cursor:pointer;padding:0 18px 0 0}
html[lang="am"] body,html[lang="ti"] body{font-family:"Noto Sans Ethiopic",Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
html[lang="am"] .hero h1,html[lang="ti"] .hero h1{letter-spacing:-1.5px;line-height:1.08}
html[lang="am"] .page-head h1,html[lang="ti"] .page-head h1{letter-spacing:-1px;line-height:1.08}
@media(max-width:900px){.language-picker{margin-left:auto}.language-picker select{max-width:92px}.header-actions .account-button{display:none}}
@media(max-width:700px){.language-picker{height:38px;padding:0 8px}.language-picker select{max-width:76px;font-size:10px}.language-globe{font-size:9px}.header-actions{gap:7px}.header-actions .icon-button{display:none}}

/* v0.4.2 — full-screen conversational Lidu */
.lidu-conversation-page{height:calc(100dvh - 118px);min-height:620px;padding:18px 24px 22px;max-width:1540px;margin:0 auto}
.lidu-chat-shell{height:100%;min-height:0;background:#fff;border:1px solid var(--am-line);border-radius:28px;box-shadow:0 16px 44px rgba(18,33,30,.07);display:flex;flex-direction:column;overflow:hidden}
.lidu-chat-topbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid #edf1ee;background:rgba(255,255,255,.97)}
.lidu-chat-identity{display:flex;align-items:center;gap:12px;min-width:0}.lidu-avatar{width:46px;height:46px;border-radius:15px;background:var(--am-green);color:#fff;display:grid;place-items:center;font-size:20px;font-weight:850}.lidu-chat-identity h1{margin:0;font-size:24px;letter-spacing:-.7px}.lidu-chat-identity p{margin:3px 0 0;color:#72807b;font-size:12px}
.lidu-chat-actions{display:flex;align-items:center;gap:10px}.lidu-market-status{height:36px;padding:0 12px;border-radius:999px;background:#eef6f2;color:var(--am-green);display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:750;white-space:nowrap}.lidu-market-status .am-icon{width:15px;height:15px}.lidu-clear-chat{height:36px;border:1px solid var(--am-line);border-radius:11px;background:#fff;color:#53615c;padding:0 12px;font-size:11px;font-weight:750;cursor:pointer}
.lidu-prompt-row{flex:0 0 auto;margin:0;padding:12px 22px;border-bottom:1px solid #f0f2f0;overflow-x:auto;flex-wrap:nowrap}.lidu-prompt-row button,.lidu-prompt-row a{white-space:nowrap;height:36px;border:1px solid var(--am-line);background:#f7f9f7;border-radius:999px;padding:0 13px;display:inline-flex;align-items:center;color:var(--am-green);font-size:11px;font-weight:800}.lidu-prompt-row a{background:#fff}
.lidu-messages{flex:1 1 auto;min-height:0;height:auto!important;overflow-y:auto;padding:22px clamp(18px,4vw,64px) 30px;display:flex;flex-direction:column;gap:18px;background:linear-gradient(180deg,#fbfcfb 0%,#fff 14%)}
.lidu-messages .ai-msg{width:min(800px,84%);max-width:800px;padding:0;background:transparent;border:0;box-shadow:none;border-radius:0;line-height:1.7;font-size:15px}.lidu-messages .ai-msg.user{align-self:flex-end;margin-left:auto;width:auto;max-width:min(720px,78%);background:var(--am-green);color:#fff;padding:13px 16px;border-radius:18px 18px 5px 18px}.lidu-messages .ai-msg.ai{align-self:flex-start}.lidu-messages .ai-msg.ai-thinking{opacity:.72}.lidu-messages .ai-msg-meta{margin-bottom:6px;color:#85918c;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.9px}.lidu-messages .ai-msg.user .ai-msg-meta{color:rgba(255,255,255,.68);margin-bottom:4px}.lidu-messages .ai-answer-text{font-size:15px;line-height:1.74;color:#1f2e2a}.lidu-messages .ai-msg.user .ai-answer-text{color:#fff}.lidu-messages .ai-answer-text p{margin:0 0 10px}.lidu-messages .ai-answer-text p:last-child{margin-bottom:0}.lidu-welcome{padding:16px 18px!important;background:#f2f7f4!important;border:1px solid #e1ebe5!important;border-radius:18px!important}
.ai-market-hint{margin-top:10px;display:inline-flex;align-items:center;padding:6px 9px;background:#eef6f2;color:#537168;border-radius:999px;font-size:10px;font-weight:750}.lidu-messages .ai-message-actions{margin-top:10px}.lidu-messages .ai-request-link{display:inline-flex;align-items:center;height:34px;border:1px solid #dfe8e3;background:#fff;border-radius:10px;padding:0 11px;color:var(--am-green);font-size:11px;font-weight:800}
.lidu-composer-wrap{flex:0 0 auto;padding:12px 18px 14px;border-top:1px solid #e9eeeb;background:rgba(255,255,255,.98)}.lidu-composer{max-width:980px;margin:0 auto;display:flex!important;align-items:flex-end;gap:10px;padding:7px 7px 7px 14px;border:1px solid #dce5e0;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(18,33,30,.06)}.lidu-composer textarea{flex:1;min-height:40px;max-height:150px;resize:none;border:0!important;outline:0!important;background:transparent!important;padding:9px 2px!important;line-height:1.45;font-size:15px;color:var(--am-ink);box-shadow:none!important}.lidu-composer button{height:44px!important;min-width:72px;border-radius:13px!important}.lidu-composer-note{max-width:980px;margin:7px auto 0;color:#8a9490;text-align:center;font-size:10px;line-height:1.4}

@media(max-width:700px){
  .lidu-conversation-page{height:calc(100dvh - 166px);min-height:480px;padding:0}
  .lidu-chat-shell{border-left:0;border-right:0;border-radius:0;box-shadow:none}
  .lidu-chat-topbar{padding:11px 14px}.lidu-avatar{width:38px;height:38px;border-radius:12px;font-size:16px}.lidu-chat-identity h1{font-size:20px}.lidu-chat-identity p{font-size:10px}.lidu-market-status{display:none}.lidu-clear-chat{height:32px;padding:0 10px}
  .lidu-prompt-row{padding:9px 12px}.lidu-prompt-row button,.lidu-prompt-row a{height:34px;font-size:10px}
  .lidu-messages{padding:16px 14px 22px;gap:16px}.lidu-messages .ai-msg{width:92%;font-size:14px}.lidu-messages .ai-msg.user{max-width:87%;padding:11px 13px}.lidu-messages .ai-answer-text{font-size:14px;line-height:1.68}
  .lidu-composer-wrap{padding:9px 10px 10px}.lidu-composer{padding:6px 6px 6px 11px;border-radius:16px}.lidu-composer textarea{font-size:16px;padding:7px 1px!important}.lidu-composer button{height:42px!important;min-width:64px}.lidu-composer-note{font-size:9px;margin-top:5px}
}

/* v0.4.3 Lidu recommendation → request flow */
.ai-request-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.lidu-messages .ai-request-car-button{min-height:40px;height:auto;padding:9px 13px;border:0;background:var(--am-green);color:#fff;border-radius:12px;text-decoration:none;box-shadow:0 8px 20px rgba(16,63,56,.16);line-height:1.25}
.lidu-messages .ai-request-car-button:hover{background:var(--am-green-2);color:#fff}
.lidu-request-prefill{max-width:1040px;margin:0 auto 18px;padding:18px 22px;display:flex;align-items:center;gap:16px;background:#edf5f1;border:1px solid #d7e7df;border-radius:20px}
.lidu-request-prefill-icon{width:46px;height:46px;border-radius:14px;background:var(--am-green);color:#fff;display:grid;place-items:center;flex:0 0 auto}
.lidu-request-prefill small{display:block;color:var(--am-green);font-size:10px;font-weight:850;letter-spacing:1.2px;margin-bottom:4px}
.lidu-request-prefill h2{margin:0 0 5px;font-size:21px;letter-spacing:-.4px}
.lidu-request-prefill p{margin:0;color:#60706a;line-height:1.55;font-size:13px}
#liducars-request-form input[name="car"]{font-weight:750;color:var(--am-ink)}
@media(max-width:700px){
  .lidu-request-prefill{margin:0 16px 14px;padding:15px 16px;align-items:flex-start}
  .lidu-request-prefill h2{font-size:18px}
  .lidu-messages .ai-request-car-button{width:100%;justify-content:center;text-align:center}
}

/* v0.4.4 — streamlined full conversation */
.lidu-conversation-page{padding-top:0;padding-bottom:0}
.lidu-chat-shell{border-top-left-radius:0;border-top-right-radius:0}
.lidu-messages{padding-top:26px;background:#fff}
.lidu-welcome{width:min(820px,92%)!important;max-width:820px!important;padding:18px 20px!important;background:#f2f7f4!important;border:1px solid #e0ebe5!important;border-radius:20px!important}
.lidu-suggested-prompts{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:13px;border-top:1px solid #dfe9e3}
.lidu-suggested-prompts button{min-height:35px;height:auto;border:1px solid #d8e4de;background:#fff;color:var(--am-green);border-radius:999px;padding:8px 12px;font-size:11px;font-weight:800;line-height:1.2;cursor:pointer;text-align:left}
.lidu-suggested-prompts button:hover{background:#eaf4ef;border-color:#cbded4}
.lidu-composer{width:min(980px,100%);max-width:980px;flex-wrap:nowrap!important}
.lidu-composer textarea{width:auto!important;min-width:0!important;flex:1 1 auto!important;height:auto!important}
.lidu-composer button{width:auto!important;flex:0 0 auto!important;padding:0 20px!important}
@media(max-width:700px){
  .lidu-conversation-page{height:calc(100dvh - 166px);padding:0}
  .lidu-chat-shell{border-radius:0}
  .lidu-messages{padding:18px 14px 18px}
  .lidu-welcome{width:96%!important;padding:15px 16px!important}
  .lidu-suggested-prompts{flex-wrap:nowrap;overflow-x:auto;margin-left:-2px;margin-right:-2px;padding-bottom:3px;scrollbar-width:none}
  .lidu-suggested-prompts::-webkit-scrollbar{display:none}
  .lidu-suggested-prompts button{flex:0 0 auto;white-space:nowrap;min-height:34px;font-size:10px;padding:7px 11px}
  .lidu-composer-wrap{padding:8px 10px 9px}
  .lidu-composer{display:flex!important;grid-template-columns:none!important;flex-direction:row!important;align-items:flex-end!important;gap:7px!important}
  .lidu-composer textarea{min-height:39px!important;max-height:120px!important;padding:8px 1px!important}
  .lidu-composer button{width:auto!important;min-width:62px!important;height:41px!important;padding:0 14px!important}
}

/* v0.4.4 full-page chat canvas */
.lidu-conversation-page{max-width:none!important;padding:0!important}
.lidu-chat-shell{border:0!important;border-radius:0!important;box-shadow:none!important}

/* v0.4.5 — Lidu chat redesigned as a clean AI conversation interface */
.lidu-conversation-page{height:calc(100dvh - 118px);min-height:620px;max-width:none;margin:0;padding:0;background:#fff}
.lidu-chat-shell{height:100%;min-height:0;border:0;border-radius:0;box-shadow:none;background:#fff;display:flex;flex-direction:column;overflow:hidden}
.lidu-start-state{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:44px 28px 24px;overflow:auto;text-align:center}
.lidu-start-brand{max-width:760px;display:flex;flex-direction:column;align-items:center}
.lidu-start-logo{width:58px;height:58px;border-radius:18px;background:var(--am-green);color:#fff;display:grid;place-items:center;font-size:25px;font-weight:850;box-shadow:0 12px 26px rgba(16,63,56,.14);margin-bottom:18px}
.lidu-start-brand h1{margin:0;font-size:clamp(36px,5vw,58px);line-height:1.02;letter-spacing:-2px;font-weight:720;color:#111a18}
.lidu-start-brand p{max-width:670px;margin:16px auto 0;color:#707b77;font-size:16px;line-height:1.65}
.lidu-start-chips{max-width:920px;display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.lidu-start-chips button{min-height:42px;border:1px solid #dde3df;background:#fff;border-radius:999px;padding:9px 16px;color:#34423e;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 3px 12px rgba(18,33,30,.025);transition:.18s ease}
.lidu-start-chips button:hover,.lidu-start-chips button:focus{background:#f2f6f4;border-color:#cbd8d2;color:var(--am-green);outline:0}
.lidu-conversation-head{display:none;flex:0 0 auto;max-width:1180px;width:100%;margin:0 auto;padding:24px 28px 8px;background:#fff}
.lidu-conversation-head strong{display:block;font-size:23px;letter-spacing:-.5px}.lidu-conversation-head small{display:block;margin-top:2px;color:#818b87;font-size:12px}
.lidu-messages{display:none;flex:1 1 auto;min-height:0;height:auto!important;overflow-y:auto;background:#fff;padding:22px max(28px,calc((100% - 1180px)/2 + 28px)) 48px;gap:26px}
.lidu-conversation-page.has-conversation .lidu-start-state{display:none}
.lidu-conversation-page.has-conversation .lidu-conversation-head{display:block}
.lidu-conversation-page.has-conversation .lidu-messages{display:flex}
.lidu-messages .ai-msg{width:100%;max-width:900px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.lidu-messages .ai-msg.user{align-self:flex-end;width:auto;max-width:min(720px,72%);margin-left:auto;padding:14px 18px;background:#edf4f1;color:#15211e;border-radius:22px 22px 6px 22px}
.lidu-messages .ai-msg.ai{align-self:flex-start}
.lidu-messages .ai-msg-meta{margin:0 0 8px;color:#6e7975;font-size:12px;font-weight:800;letter-spacing:.5px;text-transform:uppercase}
.lidu-messages .ai-msg.user .ai-msg-meta{display:none}
.lidu-messages .ai-answer-text{font-size:18px;line-height:1.85;color:#15211e;max-width:850px}
.lidu-messages .ai-msg.user .ai-answer-text{font-size:17px;line-height:1.55;color:#15211e}
.lidu-messages .ai-answer-text p{margin:0 0 14px}.lidu-messages .ai-answer-text p:last-child{margin-bottom:0}
.lidu-messages .ai-msg.ai-thinking .ai-answer-text{color:#7b8581}
.ai-market-hint{margin-top:12px;background:#f4f7f5;color:#71807a;border-radius:999px;font-size:10px;padding:6px 9px}
.lidu-composer-wrap{flex:0 0 auto;border-top:0;background:#fff;padding:12px 26px calc(18px + env(safe-area-inset-bottom))}
.lidu-composer{width:min(1080px,100%);max-width:1080px;margin:0 auto!important;display:flex!important;align-items:flex-end!important;gap:10px!important;padding:12px 12px 12px 18px!important;border:1px solid #d9dfdc!important;border-radius:26px!important;background:#fff!important;box-shadow:0 8px 28px rgba(18,33,30,.08)!important}
.lidu-composer textarea{flex:1 1 auto!important;min-width:0!important;min-height:44px!important;max-height:160px!important;padding:10px 2px!important;border:0!important;outline:0!important;background:transparent!important;resize:none!important;font-size:17px!important;line-height:1.45!important;color:#1a2522!important;box-shadow:none!important}
.lidu-composer textarea::placeholder{color:#a2aaa7}
.lidu-composer button{flex:0 0 auto!important;width:48px!important;min-width:48px!important;height:48px!important;padding:0!important;border-radius:50%!important;background:var(--am-green)!important;color:#fff!important;font-size:25px!important;line-height:1!important;font-weight:500!important}

@media(max-width:700px){
  .lidu-conversation-page{height:calc(100dvh - 166px);min-height:480px}
  .lidu-start-state{justify-content:flex-start;padding:72px 20px 20px;gap:24px}
  .lidu-start-logo{width:52px;height:52px;border-radius:16px;font-size:22px;margin-bottom:14px}
  .lidu-start-brand h1{font-size:36px;letter-spacing:-1.4px}
  .lidu-start-brand p{font-size:14px;line-height:1.62;margin-top:13px}
  .lidu-start-chips{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;width:100%;padding:0 2px 5px;scrollbar-width:none}
  .lidu-start-chips::-webkit-scrollbar{display:none}
  .lidu-start-chips button{flex:0 0 auto;min-height:39px;padding:8px 13px;font-size:11px;white-space:nowrap}
  .lidu-conversation-head{padding:17px 18px 4px}.lidu-conversation-head strong{font-size:20px}.lidu-conversation-head small{font-size:10px}
  .lidu-messages{padding:22px 18px 30px;gap:24px}
  .lidu-messages .ai-msg{width:100%;max-width:100%}
  .lidu-messages .ai-msg.user{max-width:80%;padding:12px 15px;border-radius:20px 20px 5px 20px}
  .lidu-messages .ai-answer-text{font-size:16px;line-height:1.82}.lidu-messages .ai-msg.user .ai-answer-text{font-size:15px;line-height:1.55}
  .lidu-messages .ai-msg-meta{font-size:10px;margin-bottom:7px}
  .lidu-composer-wrap{padding:8px 12px calc(10px + env(safe-area-inset-bottom))}
  .lidu-composer{padding:8px 8px 8px 14px!important;border-radius:22px!important;gap:7px!important}
  .lidu-composer textarea{font-size:16px!important;min-height:40px!important;max-height:120px!important;padding:8px 1px!important}
  .lidu-composer button{width:44px!important;min-width:44px!important;height:44px!important;font-size:22px!important}
}

/* v0.4.6 — mobile scroll stability + conversation controls */
body.automarket-app-page{overscroll-behavior-y:none;-webkit-overflow-scrolling:touch}
.automarket-shell[data-view="ai"]{overscroll-behavior-y:none}
.lidu-chat-controls{width:min(1080px,100%);max-width:1080px;margin:8px auto 0;display:flex;align-items:center;justify-content:center;gap:8px}
.lidu-chat-controls button{height:34px;padding:0 13px;border-radius:999px;border:1px solid #dde3df;background:#fff;color:#5d6965;font-size:11px;font-weight:750;cursor:pointer}
.lidu-chat-controls button:hover,.lidu-chat-controls button:focus{background:#f3f7f5;color:var(--am-green);outline:0}
.lidu-chat-controls button:disabled{opacity:.5;cursor:not-allowed}

@media(max-width:700px){
  html,body{scroll-behavior:auto!important}
  body.automarket-app-page{overflow-y:auto!important;touch-action:pan-y;overscroll-behavior-y:none}
  .automarket-shell[data-view="ai"]{min-height:100dvh;overflow:visible!important}
  .automarket-shell[data-view="ai"] .automarket-main{min-height:0!important;overflow:visible!important}
  .lidu-conversation-page{height:auto!important;min-height:calc(100dvh - 166px)!important;overflow:visible!important}
  .lidu-chat-shell{height:auto!important;min-height:calc(100dvh - 166px)!important;overflow:visible!important;display:block!important}
  .lidu-start-state{min-height:calc(100dvh - 250px);overflow:visible!important}
  .lidu-conversation-page.has-conversation .lidu-conversation-head{display:block;position:relative}
  .lidu-conversation-page.has-conversation .lidu-messages{display:flex!important;height:auto!important;min-height:0!important;overflow:visible!important;flex:none!important;padding-bottom:28px!important}
  .lidu-composer-wrap{position:sticky;bottom:68px;z-index:62;background:rgba(255,255,255,.98);backdrop-filter:blur(12px);padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;border-top:1px solid rgba(221,227,223,.85)}
  .lidu-composer{box-shadow:0 6px 18px rgba(18,33,30,.07)!important}
  .lidu-chat-controls{margin-top:7px;gap:7px}
  .lidu-chat-controls button{height:32px;padding:0 12px;font-size:10px;flex:0 0 auto}
  .lidu-messages .ai-msg:last-child{scroll-margin-bottom:150px}
}


/* v0.4.7 — keyboard-aware mobile chat + composer anchored while Lidu thinks */
@media(max-width:700px){
  /* Keep natural page scrolling, but let the conversation fill the available viewport. */
  .lidu-conversation-page.has-conversation .lidu-chat-shell{
    display:flex!important;
    flex-direction:column!important;
    min-height:calc(100dvh - 166px)!important;
    height:auto!important;
    overflow:visible!important;
  }
  .lidu-conversation-page.has-conversation .lidu-messages{
    flex:1 0 auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .lidu-conversation-page.has-conversation .lidu-composer-wrap{
    margin-top:auto!important;
  }
  .lidu-conversation-page.is-thinking .lidu-composer-wrap{
    margin-top:auto!important;
    position:sticky!important;
    bottom:68px!important;
  }

  /* When the phone keyboard is active, remove the app footer and use that space for the composer. */
  body.lidu-keyboard-open .mobile-nav{
    display:none!important;
  }
  body.lidu-keyboard-open .automarket-shell{
    padding-bottom:0!important;
  }
  body.lidu-keyboard-open .lidu-composer-wrap,
  body.lidu-keyboard-open .lidu-conversation-page.is-thinking .lidu-composer-wrap{
    bottom:0!important;
  }
  body.lidu-keyboard-open .automarket-toast{
    bottom:12px!important;
  }
}

/* v0.4.8 — remove keyboard-open dead space under the chat composer */
@media(max-width:700px){
  body.lidu-keyboard-open,
  body.lidu-keyboard-open .automarket-template-root,
  body.lidu-keyboard-open .automarket-shell[data-view="ai"],
  body.lidu-keyboard-open .automarket-main,
  body.lidu-keyboard-open .lidu-conversation-page,
  body.lidu-keyboard-open .lidu-chat-shell{
    min-height:0!important;
    height:auto!important;
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  body.lidu-keyboard-open .lidu-conversation-page.has-conversation .lidu-messages{
    padding-bottom:118px!important;
  }

  body.lidu-keyboard-open .lidu-composer-wrap,
  body.lidu-keyboard-open .lidu-conversation-page.is-thinking .lidu-composer-wrap{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    margin:0!important;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom))!important;
    border-top:1px solid rgba(221,227,223,.88)!important;
    background:#fff!important;
    backdrop-filter:none!important;
    z-index:95!important;
  }

  body.lidu-keyboard-open .lidu-chat-controls{
    margin:6px auto 0!important;
    padding:0!important;
  }

  body.lidu-keyboard-open .mobile-nav,
  body.lidu-keyboard-open .ai-fab{
    display:none!important;
  }
}

/* v0.4.9 — compact keyboard state: remove dead space and center the start content */
@media(max-width:700px){
  /* While the keyboard is open before the first message, make the visible
     viewport a dedicated chat canvas instead of preserving the page's old height. */
  body.lidu-keyboard-open.lidu-start-keyboard{
    overflow:hidden!important;
    background:#fff!important;
  }

  body.lidu-keyboard-open.lidu-start-keyboard .automarket-shell[data-view="ai"],
  body.lidu-keyboard-open.lidu-start-keyboard .automarket-main,
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-conversation-page,
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-chat-shell{
    height:var(--lidu-vv-height,100svh)!important;
    min-height:0!important;
    max-height:var(--lidu-vv-height,100svh)!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }

  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-state{
    position:fixed!important;
    z-index:82!important;
    left:0!important;
    right:0!important;
    top:0!important;
    bottom:var(--lidu-composer-h,128px)!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:18px 18px 14px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:16px!important;
    overflow:hidden!important;
    background:#fff!important;
    text-align:center!important;
  }

  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand{
    max-width:620px!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-logo{
    width:44px!important;
    height:44px!important;
    border-radius:14px!important;
    font-size:19px!important;
    margin-bottom:10px!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand h1{
    font-size:29px!important;
    line-height:1.05!important;
    letter-spacing:-1px!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand p{
    margin-top:9px!important;
    max-width:560px!important;
    font-size:13px!important;
    line-height:1.5!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-chips{
    width:min(100%,680px)!important;
    max-width:680px!important;
    justify-content:center!important;
    padding:0 2px 2px!important;
    gap:8px!important;
    overflow-x:auto!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-chips button{
    min-height:36px!important;
    padding:7px 12px!important;
    font-size:10.5px!important;
  }

  /* The composer sits directly on top of the keyboard. No placeholder band,
     old footer height or safe-area block remains above it. */
  body.lidu-keyboard-open .lidu-composer-wrap,
  body.lidu-keyboard-open .lidu-conversation-page.is-thinking .lidu-composer-wrap{
    bottom:0!important;
    margin:0!important;
    border-top:1px solid rgba(221,227,223,.72)!important;
    padding:7px 10px 7px!important;
    background:#fff!important;
  }
  body.lidu-keyboard-open .lidu-chat-controls{
    margin:5px auto 0!important;
  }

  /* Keep the active content visually centred in the usable window. */
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-conversation-head,
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-messages{
    display:none!important;
  }
}


/* v0.5.0 — place the new-chat intro inside the actually visible keyboard viewport */
@media(max-width:700px){
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-state{
    top:var(--lidu-vv-top,0px)!important;
    bottom:auto!important;
    height:calc(var(--lidu-vv-height,100svh) - var(--lidu-composer-h,128px))!important;
    max-height:calc(var(--lidu-vv-height,100svh) - var(--lidu-composer-h,128px))!important;
    padding:14px 18px 18px!important;
    justify-content:center!important;
    overflow:hidden!important;
  }

  /* Keep the complete intro together in the middle of the visible space. */
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand{
    flex:0 0 auto!important;
    max-width:min(92vw,560px)!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-logo{
    margin-bottom:8px!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand h1{
    margin:0!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand p{
    margin:7px auto 0!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-chips{
    flex:0 0 auto!important;
    margin-top:2px!important;
  }

  /* Prevent old page position from leaving an invisible spacer above the composer. */
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-composer-wrap{
    top:auto!important;
  }
}


/* v0.5.1 — keep the complete new-chat intro directly above the keyboard composer */
@media(max-width:700px){
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-state{
    position:fixed!important;
    left:0!important;
    right:0!important;
    top:auto!important;
    bottom:var(--lidu-composer-h,128px)!important;
    width:100%!important;
    height:min(330px,calc(var(--lidu-vv-height,100svh) - var(--lidu-composer-h,128px) - 8px))!important;
    min-height:220px!important;
    max-height:330px!important;
    margin:0!important;
    padding:16px 18px 18px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:14px!important;
    overflow:hidden!important;
    background:#fff!important;
    text-align:center!important;
    z-index:82!important;
  }

  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand{
    flex:0 0 auto!important;
    width:100%!important;
    max-width:560px!important;
    margin:0!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-logo{
    width:46px!important;
    height:46px!important;
    margin:0 auto 9px!important;
    border-radius:14px!important;
    font-size:20px!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand h1{
    margin:0!important;
    font-size:28px!important;
    line-height:1.08!important;
    letter-spacing:-.9px!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-brand p{
    margin:8px auto 0!important;
    max-width:520px!important;
    font-size:12.5px!important;
    line-height:1.48!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-chips{
    flex:0 0 auto!important;
    width:100%!important;
    max-width:680px!important;
    margin:0!important;
    padding:0 2px 3px!important;
    display:flex!important;
    justify-content:flex-start!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-chips::-webkit-scrollbar{display:none!important}
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-chips button{
    flex:0 0 auto!important;
    min-height:36px!important;
    padding:7px 12px!important;
    font-size:10.5px!important;
    white-space:nowrap!important;
  }

  /* The start panel and composer are a single stack above the keyboard. */
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-composer-wrap{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    width:100%!important;
    margin:0!important;
    z-index:95!important;
  }
}

/* CRM enquiry modal */
.lidu-lead-modal[hidden]{display:none!important}.lidu-lead-modal{position:fixed;inset:0;z-index:140;display:grid;place-items:center;padding:20px}.lidu-lead-backdrop{position:absolute;inset:0;background:rgba(8,28,24,.56);backdrop-filter:blur(3px)}.lidu-lead-dialog{position:relative;z-index:1;width:min(620px,100%);max-height:min(760px,90vh);overflow:auto;background:#fff;border-radius:26px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.25)}.lidu-lead-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border:0;background:#f1f4f2;border-radius:50%;font-size:25px;cursor:pointer;color:#30433e}.lidu-lead-heading h2{font-size:31px;margin:2px 0 7px;letter-spacing:-1px}.lidu-lead-heading p{margin:0 0 20px;color:#67746f}.lidu-lead-dialog .form-grid{margin-bottom:18px}.lidu-lead-dialog textarea{width:100%;margin-top:8px;border:1px solid var(--am-line);border-radius:12px;padding:12px;resize:vertical}.lidu-modal-open{overflow:hidden}
@media(max-width:700px){.lidu-lead-modal{padding:10px;align-items:end}.lidu-lead-dialog{border-radius:24px 24px 0 0;padding:24px 18px 28px;max-height:86vh}.lidu-lead-heading h2{font-size:27px}}
.lidu-management-links{display:flex;flex-wrap:wrap;gap:10px}

/* Vehicle bank-financing display */
.bank-option-chip{background:#e7f4ec!important;color:#145c46!important;font-weight:800!important}
.vehicle-finance-box{margin:18px 0;padding:18px;border:1px solid #dbe7e2;background:#f5f9f7;border-radius:18px}
.vehicle-finance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.vehicle-finance-head .kicker{margin:0 0 4px}.vehicle-finance-head h3{margin:0;font-size:21px;letter-spacing:-.5px}
.vehicle-finance-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border-radius:999px;background:#dff2e9;color:#145c46;font-size:11px;font-weight:800;white-space:nowrap}
.vehicle-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.vehicle-finance-grid>div{background:#fff;border:1px solid #e2e9e5;border-radius:13px;padding:12px}
.vehicle-finance-grid small{display:block;color:#7a8581;font-size:10px;text-transform:uppercase;letter-spacing:.65px}
.vehicle-finance-grid b{display:block;margin-top:4px;font-size:15px}
.vehicle-finance-box>p{margin:12px 0 0;color:#6b7772;font-size:12px;line-height:1.6}
@media(max-width:700px){.vehicle-finance-box{padding:14px}.vehicle-finance-grid{grid-template-columns:1fr 1fr}.vehicle-finance-head h3{font-size:19px}}

/* v0.6.6 — real vehicle gallery + taller prefilled Ask Lidu composer */
.lidu-gallery-thumbs{
  overflow-x:auto;
  overflow-y:hidden;
  max-width:100%;
  padding:2px 2px 6px;
  scrollbar-width:thin;
  scroll-snap-type:x proximity;
}
.lidu-gallery-thumbs .lidu-gallery-thumb{
  flex:0 0 86px;
  scroll-snap-align:start;
  position:relative;
}
.lidu-gallery-thumbs .lidu-gallery-thumb.active{
  border-color:var(--am-green);
  box-shadow:0 0 0 2px rgba(16,63,56,.08);
}
#lidu-detail-main-image{transition:opacity .12s ease}

/* A pasted or vehicle-prefilled prompt should remain readable before sending.
   Allow the composer to grow to roughly six lines before it becomes internally scrollable. */
.lidu-composer textarea{
  max-height:220px!important;
  overflow-y:hidden;
}
@media(max-width:700px){
  .lidu-gallery-thumbs{gap:9px;margin-top:10px;padding-bottom:7px;scrollbar-width:none}
  .lidu-gallery-thumbs::-webkit-scrollbar{display:none}
  .lidu-gallery-thumbs .lidu-gallery-thumb{flex-basis:76px;width:76px;height:66px;padding:5px;border-radius:14px}
  .lidu-composer textarea{max-height:190px!important}
}


/* v0.6.7 — simplified ecommerce home */
.hero-storefront-simple{
  display:block;
  padding-top:54px;
  padding-bottom:34px;
}
.hero-storefront-simple .hero-copy{
  max-width:860px;
}
.hero-storefront-simple h1{
  max-width:820px;
}
.home-recent-cars{
  padding-top:18px;
}
.home-show-all{
  display:flex;
  justify-content:center;
  margin-top:28px;
}
.home-show-all .am-btn .am-icon{
  width:16px;
  margin-left:7px;
}
@media(max-width:700px){
  .hero-storefront-simple{
    padding-top:32px;
    padding-bottom:18px;
  }
  .hero-storefront-simple h1{
    font-size:42px;
  }
  .home-recent-cars{
    padding-top:12px;
  }
  .home-recent-cars .section-title{
    align-items:flex-end;
  }
}

/* v0.6.8 verified-source + importer portal */
.source-page-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.importer-portal-head{padding-bottom:18px}
.importer-portal-layout{max-width:1480px;margin:0 auto;padding:0 32px 64px;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:20px;align-items:start}
.portal-card{background:#fff;border:1px solid var(--am-line);border-radius:24px;padding:24px;box-shadow:0 8px 28px rgba(18,33,30,.05)}
.portal-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.portal-card-head h2{margin:5px 0 0;font-size:28px;letter-spacing:-1px}.portal-card-head .kicker{margin-bottom:0}
.portal-card .form-grid{margin-bottom:18px}.portal-card label{font-size:13px;font-weight:700;color:#53625d}.portal-card input,.portal-card textarea,.portal-card select{width:100%;margin-top:7px;border:1px solid var(--am-line);border-radius:12px;background:#fff;padding:12px 13px;color:var(--am-ink)}.portal-card textarea{min-height:120px;resize:vertical}.portal-card .full{grid-column:1/-1}
.portal-vehicle-list{display:grid;gap:14px;margin-bottom:18px}.portal-vehicle-row{display:grid;grid-template-columns:96px 1fr;gap:16px;padding:16px;border:1px solid #e9eeeb;border-radius:18px;background:#fbfcfb}.portal-vehicle-row>img{width:96px;height:76px;object-fit:cover;border-radius:14px;background:#eef3f0}.portal-vehicle-title strong{display:block;font-size:17px}.portal-vehicle-title small{display:block;color:#74807c;margin-top:5px}.portal-stock-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.portal-stock-fields label{font-size:11px}.portal-stock-fields .full{grid-column:1/-1}.portal-success{max-width:1480px;margin:18px auto 0;padding:14px 18px;background:#e8f6ee;border:1px solid #b8ddc7;border-radius:14px;color:#155d37;font-weight:700}.owner-source-box{grid-template-columns:auto 1fr}.importer-portal-login .am-btn{margin-top:8px}
@media(max-width:900px){.importer-portal-layout{grid-template-columns:1fr}.portal-stock-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.importer-portal-layout{padding:0 16px 48px}.portal-card{padding:18px;border-radius:20px}.portal-card-head{display:block}.portal-card-head>span{display:inline-flex;margin-top:10px}.portal-vehicle-row{grid-template-columns:72px 1fr}.portal-vehicle-row>img{width:72px;height:58px}.portal-stock-fields{grid-template-columns:1fr 1fr}.portal-stock-fields label:nth-child(3),.portal-stock-fields .full{grid-column:1/-1}.source-page-actions .am-btn{width:100%}}

/* v0.7 seller sources + importer self-service portal */
.owner-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.owner-source-card{background:#fff;border:1px solid var(--am-line);border-radius:22px;padding:22px;display:flex;gap:16px;align-items:flex-start;box-shadow:0 8px 28px rgba(18,33,30,.05)}
.owner-source-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:16px;background:var(--am-green);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:800}
.owner-source-card h3{margin:10px 0 5px;font-size:20px;letter-spacing:-.4px}.owner-source-card p{margin:0 0 8px;color:var(--am-muted)}.owner-source-card small{color:var(--am-green);font-weight:700}
.portal-readonly-note,.form-help{color:var(--am-muted);font-size:12px;line-height:1.55}
.portal-vehicle-row{display:block!important;padding:0!important;overflow:hidden}
.portal-vehicle-row>summary{list-style:none;display:grid;grid-template-columns:78px 1fr auto;gap:14px;align-items:center;padding:14px;cursor:pointer;background:#fbfcfb}
.portal-vehicle-row>summary::-webkit-details-marker{display:none}.portal-vehicle-row>summary img{width:78px;height:60px;object-fit:cover;border-radius:12px;background:#eef3f0}.portal-edit-hint{font-size:12px;color:var(--am-green);font-weight:800}
.portal-vehicle-row .portal-stock-fields{padding:14px;border-top:1px solid #e9eeeb;grid-template-columns:repeat(2,minmax(0,1fr))!important}.portal-vehicle-row .portal-stock-fields .full{grid-column:1/-1}.portal-bank-toggle{display:flex!important;align-items:center;gap:8px;padding-top:28px}.portal-bank-toggle input{width:auto!important;margin:0!important}.owner-confirmation{display:flex!important;align-items:flex-start;gap:10px;padding:13px;border:1px solid var(--am-line);border-radius:12px;background:#f8fbf9}.owner-confirmation input{width:auto!important;margin-top:2px!important}
@media(max-width:900px){.owner-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.owner-source-grid{grid-template-columns:1fr}.portal-vehicle-row .portal-stock-fields{grid-template-columns:1fr!important}.portal-bank-toggle{padding-top:0}.portal-vehicle-row>summary{grid-template-columns:62px 1fr auto}.portal-vehicle-row>summary img{width:62px;height:50px}}

/* v0.6.9 — compact contact blocks and direct-message modal */
.contact-panel{
  max-width:calc(var(--am-max) - 64px);
  margin:0 auto 64px;
  padding:24px 26px;
  background:#fff;
  border:1px solid var(--am-line);
  border-radius:28px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:18px;
  align-items:center;
  box-shadow:0 8px 28px rgba(18,33,30,.05);
}
.contact-panel-icon{
  width:58px;height:58px;border-radius:18px;background:#edf4f1;color:var(--am-green);display:grid;place-items:center
}
.contact-panel h2{font-size:30px;margin:4px 0 8px;letter-spacing:-1px}
.contact-panel p{margin:0;color:#65726d;line-height:1.65}
.vehicle-contact-panel{margin-top:0}
.lidu-direct-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:-2px 0 18px}
.lidu-direct-contact-btn{display:flex;align-items:center;gap:11px;padding:13px 14px;border:1px solid var(--am-line);border-radius:15px;background:#f7faf8;color:var(--am-green)}
.lidu-direct-contact-btn .am-icon{width:22px;height:22px}
.lidu-direct-contact-btn span{display:block;min-width:0}
.lidu-direct-contact-btn small{display:block;font-size:9px;letter-spacing:.8px;color:#76827d;margin-bottom:2px}
.lidu-direct-contact-btn b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lidu-message-box{margin-bottom:14px}
.lidu-message-box label{display:block;font-size:13px;font-weight:700;color:#34443f}
.lidu-message-box textarea{min-height:132px!important;max-height:240px;line-height:1.55;font-size:15px;background:#fbfcfb}
.lidu-contact-fields{padding-top:2px}

@media(max-width:700px){
  .contact-panel{max-width:none;margin:0 16px 46px;padding:20px;border-radius:22px;grid-template-columns:auto 1fr}
  .contact-panel .am-btn{grid-column:1/-1;width:100%}
  .contact-panel h2{font-size:25px}
  .contact-panel-icon{width:50px;height:50px;border-radius:16px}
  .lidu-direct-contact{grid-template-columns:1fr 1fr;gap:8px}
  .lidu-direct-contact-btn{padding:11px 10px}
  .lidu-direct-contact-btn b{font-size:12px}
  .lidu-message-box textarea{min-height:120px!important}
}


/* v0.7.0 — simplified contact action and normal-message contact form */
.contact-panel.contact-button-only{
  display:flex!important;
  align-items:center;
  justify-content:center;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  margin-top:10px;
}
.contact-panel.contact-button-only .am-btn{
  min-width:220px;
  height:52px;
  padding:0 30px;
}
.lidu-offer-field[hidden]{display:none!important}
@media(max-width:700px){
  .contact-panel.contact-button-only{margin:0 16px 38px!important;padding:0!important}
  .contact-panel.contact-button-only .am-btn{width:100%;min-width:0}
}

/* v0.7.1 — Ask Lidu composer sizing + keep controls visible on the new-chat screen */
.lidu-composer-wrap{
  border-top:0!important;
}
.lidu-composer{
  min-height:92px!important;
}
.lidu-composer textarea{
  min-height:78px!important;
  max-height:190px!important;
}

@media(max-width:700px){
  /* On the untouched/new-chat state, use the available viewport as one flex
     canvas so the intro, enlarged composer, New chat and Save conversation
     controls remain visible whenever they physically fit on screen. */
  .lidu-conversation-page:not(.has-conversation){
    height:calc(100dvh - 166px)!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .lidu-conversation-page:not(.has-conversation) .lidu-chat-shell{
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  .lidu-conversation-page:not(.has-conversation) .lidu-start-state{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow:auto!important;
    justify-content:center!important;
    padding:24px 20px 14px!important;
    gap:18px!important;
  }
  .lidu-conversation-page:not(.has-conversation) .lidu-start-logo{
    margin-bottom:10px!important;
  }
  .lidu-conversation-page:not(.has-conversation) .lidu-start-brand p{
    margin-top:10px!important;
  }
  .lidu-conversation-page:not(.has-conversation) .lidu-composer-wrap{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    top:auto!important;
    width:100%!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:8px 12px calc(9px + env(safe-area-inset-bottom))!important;
    border-top:0!important;
    background:#fff!important;
    backdrop-filter:none!important;
  }

  /* Roughly double the previous mobile composer height. */
  .lidu-composer{
    min-height:94px!important;
    padding:9px 9px 9px 14px!important;
    border-radius:24px!important;
    align-items:flex-end!important;
  }
  .lidu-composer textarea{
    min-height:78px!important;
    max-height:190px!important;
    padding:9px 2px!important;
    line-height:1.45!important;
  }
  .lidu-composer button{
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    margin-bottom:1px!important;
  }
  .lidu-chat-controls{
    display:flex!important;
    visibility:visible!important;
    margin:8px auto 0!important;
    padding:0!important;
    gap:8px!important;
  }
  .lidu-chat-controls button{
    min-height:34px!important;
    height:34px!important;
    padding:0 14px!important;
  }

  /* Once a conversation has started, keep the stable scrolling behavior but
     use the same taller composer and remove the separator line. */
  .lidu-conversation-page.has-conversation .lidu-composer-wrap{
    border-top:0!important;
  }

  /* Keyboard-open rules still anchor the composer to the keyboard, but never
     reintroduce the removed separator line. */
  body.lidu-keyboard-open .lidu-composer-wrap,
  body.lidu-keyboard-open .lidu-conversation-page.is-thinking .lidu-composer-wrap,
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-composer-wrap{
    border-top:0!important;
  }
}


/* v0.7.2 — unified solid-green storefront header */
.automarket-header{
  background:#0f4b43;
  border-bottom:0;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  color:#fff;
}
.automarket-header .header-inner{background:#0f4b43}
.automarket-header .am-brand,
.automarket-header .am-brand strong,
.automarket-header .desktop-nav a,
.automarket-header .header-actions{color:#fff}
.automarket-header .am-brand small{color:rgba(255,255,255,.72)}
.automarket-header .brand-mark{
  background:#fff;
  color:#0f4b43;
  box-shadow:none;
}
.automarket-header .desktop-nav a{color:rgba(255,255,255,.78);border-bottom-color:transparent}
.automarket-header .desktop-nav a.active,
.automarket-header .desktop-nav a:hover{color:#fff;border-color:#fff}
.automarket-header .icon-button,
.automarket-header .account-button{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.22);
  color:#fff;
  box-shadow:none;
}
.automarket-header .language-picker{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.26);
  color:#fff;
  box-shadow:none;
}
.automarket-header .language-globe{color:#fff}
.automarket-header .language-picker select{color:#fff}
.automarket-header .language-picker select option{color:#12211e;background:#fff}
.demo-banner{
  background:#0f4b43;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.10);
  box-shadow:none;
}
.demo-banner strong{color:#fff}
.demo-banner span{color:rgba(255,255,255,.76);opacity:1}
@media(max-width:700px){
  .automarket-header .header-inner{height:72px}
  .automarket-header .brand-mark{background:#fff;color:#0f4b43}
  .automarket-header .am-brand strong{color:#fff}
  .automarket-header .language-picker{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.24)}
  .demo-banner{border-top:1px solid rgba(255,255,255,.10)}
}

/* v0.7.3 — saved Lidu conversations + unsaved refresh recovery */
.lidu-saved-conversations{
  width:min(820px,100%);
  margin:8px auto 0;
  text-align:left;
}
.lidu-saved-conversations[hidden]{display:none!important}
.lidu-saved-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 10px}
.lidu-saved-head small{display:block;color:var(--am-green-2);font-size:9px;font-weight:850;letter-spacing:1.4px}
.lidu-saved-head h2{margin:3px 0 0;font-size:18px;letter-spacing:-.35px}
.lidu-saved-list{display:grid;gap:8px}
.lidu-saved-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid var(--am-line);background:#fff;border-radius:16px;padding:6px;box-shadow:0 5px 16px rgba(18,33,30,.035)}
.lidu-saved-open{border:0;background:transparent;text-align:left;padding:8px 10px;min-width:0;cursor:pointer;color:var(--am-ink)}
.lidu-saved-open strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lidu-saved-open span{display:block;margin-top:4px;color:#7a8581;font-size:10px}
.lidu-saved-delete{height:34px;border-radius:11px;border:1px solid var(--am-line);background:#fff;color:#6b7672;padding:0 11px;font-size:10px;font-weight:750;cursor:pointer}
.lidu-saved-delete:hover,.lidu-saved-delete:focus{color:#8c2c2c;background:#fff7f7;outline:0}

.lidu-unsaved-modal,.lidu-archive-modal{position:fixed;inset:0;z-index:10050;background:rgba(9,28,24,.46);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:18px}
.lidu-unsaved-panel{width:min(440px,100%);background:#fff;border-radius:26px;padding:28px;box-shadow:0 28px 70px rgba(0,0,0,.20);text-align:center}
.lidu-unsaved-icon{width:54px;height:54px;border-radius:17px;margin:0 auto 14px;background:var(--am-green);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:850}
.lidu-unsaved-panel h2{margin:0;font-size:25px;letter-spacing:-.8px}
.lidu-unsaved-panel p{margin:12px auto 0;color:#687570;line-height:1.6;font-size:14px;max-width:350px}
.lidu-unsaved-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}
.lidu-unsaved-actions button{height:48px;border-radius:14px;font-size:12px;font-weight:800;cursor:pointer}
.lidu-unsaved-actions .primary{border:0;background:var(--am-green);color:#fff}
.lidu-unsaved-actions .secondary{border:1px solid var(--am-line);background:#fff;color:var(--am-ink)}
body.lidu-modal-open{overflow:hidden!important}

.lidu-archive-panel{width:min(720px,100%);max-height:min(82dvh,760px);background:#fff;border-radius:24px;box-shadow:0 28px 70px rgba(0,0,0,.20);display:flex;flex-direction:column;overflow:hidden}
.lidu-archive-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px;border-bottom:1px solid var(--am-line)}
.lidu-archive-head small{display:block;color:var(--am-green-2);font-size:9px;font-weight:850;letter-spacing:1.2px;text-transform:uppercase}
.lidu-archive-head h2{margin:4px 0 3px;font-size:20px;letter-spacing:-.5px}.lidu-archive-head span{color:#7b8581;font-size:10px}
.lidu-archive-close{width:38px;height:38px;border-radius:12px;border:1px solid var(--am-line);background:#fff;font-size:25px;line-height:1;cursor:pointer}
.lidu-archive-body{overflow:auto;padding:18px 22px 24px;display:grid;gap:16px}
.lidu-archive-message{max-width:88%;font-size:13px;line-height:1.6}.lidu-archive-message b{display:block;margin-bottom:5px;font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#78837f}.lidu-archive-message p{margin:0 0 7px}.lidu-archive-message.user{margin-left:auto;background:#eef5f2;border-radius:18px;padding:12px 14px}.lidu-archive-message.assistant{padding:4px 0}

@media(max-width:700px){
  .lidu-saved-conversations{width:100%;margin-top:4px;padding-bottom:4px}
  .lidu-saved-head{padding:0 2px}.lidu-saved-head h2{font-size:16px}
  .lidu-saved-row{border-radius:14px}.lidu-saved-open{padding:7px 8px}.lidu-saved-delete{height:32px;padding:0 9px}
  .lidu-unsaved-modal,.lidu-archive-modal{align-items:flex-end;padding:10px}
  .lidu-unsaved-panel{border-radius:24px;padding:24px 18px 20px;margin-bottom:max(8px,env(safe-area-inset-bottom))}
  .lidu-unsaved-panel h2{font-size:22px}.lidu-unsaved-panel p{font-size:13px}
  .lidu-unsaved-actions{grid-template-columns:1fr;gap:8px}.lidu-unsaved-actions button{height:46px}
  .lidu-archive-panel{max-height:86dvh;border-radius:24px 24px 18px 18px;margin-bottom:max(4px,env(safe-area-inset-bottom))}
  .lidu-archive-head{padding:17px 16px}.lidu-archive-body{padding:16px}
  .lidu-archive-message{max-width:94%}
}


/* v0.7.4 — mobile vehicle-detail containment + Ask Lidu border */
/* Newer listings can contain longer/less-complete values than the original
   sample records. Make every detail section shrink inside the viewport rather
   than allowing a long value to widen a grid track. */
.vehicle-detail,
.vehicle-detail .detail-media,
.vehicle-detail .detail-copy,
.vehicle-detail .spec-grid,
.vehicle-detail .vehicle-finance-box,
.vehicle-detail .vehicle-finance-grid,
.vehicle-detail .verified-source-box,
.vehicle-detail .detail-actions{
  min-width:0;
  max-width:100%;
}
.vehicle-detail .detail-copy,
.vehicle-detail .detail-media{
  width:100%;
}
.vehicle-detail .detail-desc{
  white-space:pre-line;
  overflow-wrap:anywhere;
  word-break:normal;
}
.vehicle-detail .spec-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.vehicle-detail .spec-grid>div,
.vehicle-detail .vehicle-finance-grid>div{
  min-width:0;
  overflow:hidden;
}
.vehicle-detail .spec-grid b,
.vehicle-detail .vehicle-finance-grid b,
.vehicle-detail .verified-source-box h3,
.vehicle-detail .verified-source-box p,
.vehicle-detail .verified-source-box a{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
}
.vehicle-detail .vehicle-finance-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.vehicle-detail .verified-source-box{
  grid-template-columns:auto minmax(0,1fr) auto;
  width:100%;
}
.vehicle-detail .detail-actions{
  width:100%;
}
.vehicle-detail .detail-actions .am-btn{
  min-width:0;
  max-width:100%;
}
.ai-fab{
  border:1px solid #fff!important;
}

@media(max-width:700px){
  .vehicle-detail{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .vehicle-detail .detail-media,
  .vehicle-detail .detail-copy{
    min-width:0;
    width:100%;
    max-width:100%;
  }
  .vehicle-detail .detail-image,
  .vehicle-detail .lidu-gallery-thumbs{
    max-width:100%;
  }
  .vehicle-detail .spec-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .vehicle-detail .spec-grid>div{
    padding:12px;
  }
  .vehicle-detail .spec-grid b{
    font-size:14px;
    line-height:1.35;
  }
  .vehicle-detail .vehicle-finance-box{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .vehicle-detail .vehicle-finance-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
  }
  .vehicle-detail .vehicle-finance-grid>div{
    min-width:0;
    padding:12px;
  }
  .vehicle-detail .vehicle-finance-grid b{
    font-size:14px;
    line-height:1.35;
  }
  .vehicle-detail .verified-source-box{
    grid-template-columns:48px minmax(0,1fr);
    gap:11px;
    padding:14px;
    overflow:hidden;
  }
  .vehicle-detail .verified-source-box img,
  .vehicle-detail .verified-source-box .source-avatar{
    width:48px!important;
    height:48px!important;
  }
  .vehicle-detail .verified-source-box a{
    grid-column:2;
    justify-self:start;
  }
  .vehicle-detail .detail-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    width:100%;
  }
  .vehicle-detail .detail-actions .am-btn{
    width:100%;
    min-width:0;
    min-height:46px;
    height:auto;
    padding:10px 9px;
    text-align:center;
    line-height:1.25;
    white-space:normal;
  }
  .vehicle-detail .transaction-note{
    overflow-wrap:anywhere;
  }
}


/* v0.7.5 — stable single-scroller Ask Lidu layout + history below composer */
.lidu-saved-conversations{
  order:50;
  width:min(1080px,calc(100% - 52px));
  margin:18px auto 34px;
  padding:0;
}
.lidu-composer-wrap{order:40}
.lidu-conversation-head{order:10}
.lidu-messages{order:20}
.lidu-start-state{order:5}

@media(max-width:700px){
  /* One vertical scroller only: the browser page. Nested/sticky chat scrolling
     was the source of the jumpy/glitchy behavior on Android Chrome. */
  html,body{scroll-behavior:auto!important;overscroll-behavior-y:auto!important}
  body.automarket-app-page{overflow-y:auto!important;touch-action:auto!important;overscroll-behavior-y:auto!important}
  .automarket-shell[data-view="ai"],
  .automarket-shell[data-view="ai"] .automarket-main,
  .lidu-conversation-page,
  .lidu-chat-shell{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .lidu-conversation-page{
    padding:0!important;
    background:#fff!important;
  }
  .lidu-chat-shell{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
  }

  /* New-chat introduction stays in normal flow. It is not an internal scroll box. */
  .lidu-conversation-page:not(.has-conversation){
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .lidu-conversation-page:not(.has-conversation) .lidu-chat-shell{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .lidu-conversation-page:not(.has-conversation) .lidu-start-state,
  .lidu-start-state{
    flex:none!important;
    height:auto!important;
    min-height:470px!important;
    overflow:visible!important;
    justify-content:center!important;
    padding:42px 18px 34px!important;
    gap:20px!important;
  }

  /* Conversation messages grow with content instead of creating a second scroll area. */
  .lidu-conversation-page.has-conversation .lidu-chat-shell{
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:0!important;
  }
  .lidu-conversation-page.has-conversation .lidu-conversation-head{
    display:block!important;
    position:static!important;
    padding:20px 18px 4px!important;
  }
  .lidu-conversation-page.has-conversation .lidu-messages{
    display:flex!important;
    flex:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    padding:18px 18px 30px!important;
    gap:24px!important;
  }

  /* Composer and controls live in document flow. No sticky footer fighting the page. */
  .lidu-composer-wrap,
  .lidu-conversation-page.has-conversation .lidu-composer-wrap,
  .lidu-conversation-page.is-thinking .lidu-composer-wrap{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    margin:0!important;
    padding:10px 12px 12px!important;
    background:#fff!important;
    border:0!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    z-index:auto!important;
  }
  .lidu-chat-controls{
    display:flex!important;
    visibility:visible!important;
    justify-content:center!important;
    margin:9px auto 0!important;
    gap:8px!important;
    padding:0!important;
  }

  /* History is deliberately AFTER the writing box and its controls. */
  .lidu-saved-conversations{
    order:50!important;
    width:calc(100% - 24px)!important;
    margin:14px 12px 26px!important;
    padding:16px 0 0!important;
    border-top:1px solid #edf0ee;
  }
  .lidu-saved-conversations[hidden]{display:none!important}
  .lidu-saved-head{padding:0 4px 4px!important}
  .lidu-saved-head h2{font-size:22px!important}
  .lidu-saved-list{gap:10px!important}
  .lidu-saved-row{padding:7px!important;border-radius:16px!important}

  /* The app footer remains the last fixed UI element in the normal state. */
  .automarket-shell[data-view="ai"]{padding-bottom:78px!important}
  .automarket-shell[data-view="ai"] .mobile-nav{display:grid}

  /* Keyboard state: only the composer becomes fixed; footer disappears. This
     keeps typing usable without restoring nested scrolling. */
  body.lidu-keyboard-open .mobile-nav,
  body.lidu-keyboard-open .ai-fab{display:none!important}
  body.lidu-keyboard-open .automarket-shell[data-view="ai"]{padding-bottom:0!important}
  body.lidu-keyboard-open .lidu-composer-wrap,
  body.lidu-keyboard-open .lidu-conversation-page.is-thinking .lidu-composer-wrap,
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-composer-wrap{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    width:100%!important;
    z-index:95!important;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom))!important;
    background:#fff!important;
    box-shadow:0 -5px 22px rgba(18,33,30,.07)!important;
  }
  body.lidu-keyboard-open .lidu-saved-conversations{display:none!important}
  body.lidu-keyboard-open .lidu-conversation-page.has-conversation .lidu-messages{
    padding-bottom:calc(var(--lidu-composer-h,150px) + 20px)!important;
  }
  body.lidu-keyboard-open.lidu-start-keyboard .lidu-start-state{
    min-height:calc(var(--lidu-vv-height,100dvh) - var(--lidu-composer-h,150px) - 20px)!important;
    padding-bottom:calc(var(--lidu-composer-h,150px) + 12px)!important;
  }
}

/* v0.7.6 — tighter new-chat intro spacing on mobile */
@media(max-width:700px){
  .lidu-conversation-page:not(.has-conversation) .lidu-start-state,
  .lidu-start-state{
    min-height:350px!important;
    padding:22px 18px 18px!important;
    gap:16px!important;
    justify-content:center!important;
  }
  .lidu-start-brand p{margin-top:10px!important}
  .lidu-start-chips{margin-top:0!important}
}
