:root{--ink:#102b3a;--muted:#677b88;--line:#e0e8ed;--accent:#176c78;--accent-soft:#edf7f7}
body{background:#f3f6f8;color:#172f3e;font-family:Inter,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
.ui-icon{width:18px;height:18px;flex:0 0 auto;vertical-align:middle}
.site-header{border-bottom:1px solid #dfe7ed;background:#fff;box-shadow:0 1px 3px #102b3a03}
.site-header .brand,.login-brand{flex-direction:column;align-items:flex-start;gap:6px}
.site-header .brand img{width:200px}
.brand-caption{font-size:9px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#687d89;padding-left:2px;line-height:1}
.header-right .user-name{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#465e6c}
.user-name>.ui-icon{width:15px;height:15px;color:#7f939f}
.back-link,.logout-form .text-button{display:inline-flex;align-items:center;gap:7px;text-decoration:none;font-size:12px}
.logout-form .text-button{color:#637986}.logout-form .text-button:hover{color:#173b4f}
.back-link>.ui-icon,.logout-form .ui-icon{width:16px;height:16px;color:#69828f}
.page-heading{margin-bottom:20px}.page-heading h1,.admin-intro h1{display:flex;align-items:center;gap:11px;letter-spacing:-.6px}
.page-heading h1>.ui-icon,.admin-intro h1>.ui-icon{box-sizing:content-box;width:22px;height:22px;padding:9px;background:#fff;border:1px solid #dae6eb;border-radius:11px;box-shadow:0 2px 4px #102b3a04;color:var(--accent)}
.page-actions{gap:9px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;transition:background .15s,border-color .15s,box-shadow .15s}
.primary-button{background:#133b4b;border-color:#133b4b;box-shadow:0 2px 3px #102b3a0c}.primary-button:hover{background:#1b5364;border-color:#1b5364;box-shadow:0 3px 7px #102b3a15}
.secondary-button{background:#fff;border-color:#d8e3e9;color:#344f60}.secondary-button:hover{background:#f8fbfc;border-color:#aec8d2}
.secondary-button>.ui-icon{color:#62818e}.primary-button>.ui-icon{color:#e8f7f9}
.page-actions .ui-icon{width:17px;height:17px}.text-button>.ui-icon{width:15px;height:15px;margin-right:5px}
.entry-card,.list-card,.mtd-summary,.history-table-wrap{border-color:#e0e8ed;box-shadow:0 3px 14px #102b3a04}
.vehicle-page .list-card,.vehicle-page .entry-card,.admin-page .admin-card,.mtd-summary{border-radius:12px}
.mtd-summary{padding:18px 21px;background:#fff}.mtd-heading{margin-bottom:17px}.mtd-heading h2{display:flex;align-items:center;gap:8px;color:#345665;font-size:13px;letter-spacing:.01em}
.mtd-heading h2>.ui-icon{color:#72939d;width:16px;height:16px}.mtd-heading #mtd-period{font-size:10px;color:#7c8e99}
.mtd-metrics>div{padding:0 20px;border-left-color:#edf1f4}.mtd-metrics>div>span{display:flex;align-items:center;gap:6px;font-size:10px;color:#718590;white-space:nowrap}
.mtd-metrics>div>span>.ui-icon{width:15px;height:15px;color:#528b94}.mtd-metrics strong{font-size:27px;letter-spacing:-.8px;font-weight:650;margin-top:7px;color:#153847;line-height:1.2}
.mtd-metrics>div:nth-child(2)>strong{color:#176e6c}.mtd-metrics>div:nth-child(n+5)>strong{color:#316b82}
.list-toolbar h2{display:flex;align-items:center;gap:8px}.list-toolbar h2>.ui-icon{color:#6e8b99;width:17px;height:17px}.count{background:#f0f5f7;color:#6b8390;border:1px solid #e7eef2}
.vehicle-page .list-toolbar{padding:17px 20px 11px}.search-field{border-color:#dae5eb;background:#fbfdfe;border-radius:8px}.search-field:focus-within{background:#fff}
.vehicle-page #refresh{display:inline-flex;align-items:center;gap:5px;text-decoration:none;font-size:11px;color:#6a8290}.vehicle-page #refresh .ui-icon{width:13px;height:13px}
th{background:#f7fafc;color:#6b8190}.vehicle-page th{font-size:10px;font-weight:650;padding-top:12px;padding-bottom:12px;letter-spacing:.025em}
.vehicle-page #vehicle-rows td{padding-top:15px;padding-bottom:15px}.vehicle-page #vehicle-rows tr:hover{background:#f8fcfd}.stock-link{color:#1b526b;text-decoration:none}.stock-link:hover{text-decoration:underline}
.source-tag{background:#f1f6f8;border:1px solid #e3ecf0;color:#557481;border-radius:5px}.vehicle-vin{color:#8799a4;letter-spacing:.015em}
.admin-tabs{border-bottom:0;background:#eaf0f4;padding:5px;border-radius:11px;gap:4px;margin-bottom:20px;scrollbar-width:thin}
.admin-tabs button{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:7px;padding:10px 13px;font-size:12px;color:#667d8b}
.admin-tabs button>.ui-icon{width:16px;height:16px;color:#7b939f}.admin-tabs button[aria-selected=true]{background:#fff;color:#17485d;box-shadow:0 1px 5px #1537470d;border:0}.admin-tabs button[aria-selected=true]>.ui-icon{color:var(--accent)}
.admin-tabs button:hover{background:#f3f8fa}.admin-card h2,.admin-card-heading h2,.email-card>h2{display:flex;align-items:center;gap:9px}.admin-card h2>.ui-icon,.email-card h2>.ui-icon{width:18px;height:18px;color:#70949f}
.database-metric{background:#f9fcfd;border-color:#e4edf2}.database-metric>span{display:flex;align-items:center;gap:7px}.database-metric .ui-icon{width:14px;height:14px;color:#7898a4}
.history-totals article{box-shadow:0 3px 12px #102b3a03;border-color:#e0e8ed}.history-totals span{display:flex;align-items:center;gap:7px}.history-totals .ui-icon{width:15px;height:15px;color:#75949f}
.history-totals strong{font-weight:650;color:#183e50;letter-spacing:-.5px}.map-card{overflow:hidden}#lead-map{border-color:#dce7ec;border-radius:10px}
.field input,.field select{border-color:#d5e0e7}.field input:focus,.field select:focus{border-color:#7ba4b4;box-shadow:0 0 0 3px #1a748610}
.login-page{background:radial-gradient(ellipse at 50% 0,#eaf3f6 0,transparent 65%),#f4f7f9}
.login-shell{max-width:490px;margin-top:7vh}.login-brand{align-items:center;gap:10px;margin-bottom:27px}.login-brand img{width:220px}.login-brand .brand-caption{font-size:10px;color:#66828e;letter-spacing:.2em}
.login-card{border-radius:16px;padding:30px 32px;border:1px solid #dde8ed;box-shadow:0 10px 32px #163e5010}
.login-card h1{display:flex;align-items:center;gap:11px;font-size:24px;letter-spacing:-.65px;line-height:1.3}
.login-card h1>.ui-icon{box-sizing:content-box;width:20px;height:20px;background:#eff7f8;padding:9px;border-radius:10px;color:var(--accent)}
.password-form{margin-top:26px;gap:18px}.password-form .field{gap:7px}.password-form label{font-size:12px;color:#3b5666}.password-form input{min-height:46px;font-size:15px;border-radius:8px;background:#fcfdfe}
.password-form input:focus{background:#fff}.password-form .login-button{min-height:46px;width:100%;font-size:13px}.forgot-password-link{text-decoration:none;color:#567c8d;font-size:12px}.forgot-password-link:hover{color:#154d63;text-decoration:underline}
@media(max-width:1000px){.mtd-metrics>div{padding:0 13px}.mtd-metrics>div>span{gap:4px;font-size:9px}.mtd-metrics strong{font-size:25px}.page-heading{align-items:flex-start}.page-actions{max-width:65%}}
@media(max-width:620px){
 .site-header .brand img{width:164px}.brand-caption{font-size:8px;letter-spacing:.13em}.site-header .header-inner{padding:14px 16px;gap:12px}.header-right .user-name{display:none}.header-right{gap:12px}.back-link,.logout-form .text-button{font-size:11px;gap:5px}.back-link .ui-icon,.logout-form .ui-icon{width:14px;height:14px}
 .vehicle-page main,.admin-page main{padding:18px 14px}.page-heading{flex-direction:column;align-items:stretch;gap:15px;margin-bottom:17px}.page-heading h1,.admin-intro h1{font-size:22px}.page-heading h1>.ui-icon,.admin-intro h1>.ui-icon{width:19px;height:19px;padding:7px;border-radius:9px}
 .page-actions{max-width:none;justify-content:flex-start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.page-actions .report-link,.page-actions .primary-button{width:100%;min-height:40px;font-size:12px;padding:9px;gap:7px}.page-actions .ui-icon{width:16px;height:16px}
 .mtd-summary{padding:15px}.mtd-heading{margin-bottom:15px;align-items:center}.mtd-heading h2{font-size:12px;gap:6px}.mtd-heading #mtd-period{font-size:9px;text-align:right;max-width:44%}.mtd-heading h2>.ui-icon{width:14px;height:14px}
 .mtd-metrics{gap:14px 16px}.mtd-metrics>div,.mtd-metrics>div:first-child{padding:0;border:0}.mtd-metrics>div>span{font-size:10px;gap:6px}.mtd-metrics>div>span>.ui-icon{width:13px;height:13px}.mtd-metrics strong{font-size:24px;margin-top:5px}
 .vehicle-page .list-toolbar{padding:16px 16px 9px}.admin-tabs button{font-size:11px;padding:9px 10px;gap:6px}.admin-tabs .ui-icon{width:14px;height:14px}.admin-card h2{font-size:16px}
 .login-shell{margin-top:4vh;padding:20px;max-width:440px}.login-brand{margin-bottom:24px}.login-brand img{width:210px}.login-card{padding:25px 23px;border-radius:14px}.login-card h1{font-size:22px;gap:9px}.login-card h1>.ui-icon{width:18px;height:18px;padding:8px}.password-form input{font-size:16px;min-height:47px}
}
@media print{body{background:#fff}.ui-icon,.brand-caption{display:none!important}.history-totals article{box-shadow:none}}
