/* AvtoMaydon v18: consistent green header, compact legal plate, modal release, edit page. */
.v18-shell .workspace>.v18-page-hero{
  position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;
  gap:22px;width:100%;max-width:none;min-height:126px;overflow:hidden;margin:0 0 22px;
  padding:26px clamp(24px,3vw,38px);border:1px solid #147f62;border-radius:19px;
  background:radial-gradient(ellipse 48% 130% at 103% 0%,rgba(85,230,171,.29),transparent 88%),
    linear-gradient(112deg,#004334 0%,#006c52 55%,#009976 100%);
  box-shadow:0 14px 32px rgba(0,78,50,.13);color:#fff;
}
.v18-shell .workspace>.v18-page-hero::before,.v18-shell .workspace>.v18-page-hero::after{display:none!important}
.v18-shell .v18-hero-copy{min-width:0;flex:1 1 320px;text-align:left}
.v18-shell .v18-page-hero h1{margin:0 0 8px;color:#fff;letter-spacing:-1.05px;
  font:800 clamp(25px,2.7vw,34px)/1.2 Manrope,'DM Sans',sans-serif}
.v18-shell .v18-page-hero p{margin:0;max-width:650px;color:#d6f6e8;
  font:500 12.5px/1.7 'DM Sans',sans-serif}
.v18-hero-side{display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto}
.v18-hero-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;
  min-height:46px;padding:12px 17px;background:#fff;border:1px solid #d9ffeb;border-radius:11px;
  color:#006a4b;text-decoration:none;font:800 12px/1.3 'DM Sans',sans-serif;
  box-shadow:0 7px 19px rgba(0,44,29,.13);transition:transform .16s ease,background .16s ease}
.v18-hero-action:hover{background:#e8fff3;transform:translateY(-1px);color:#006345}
.v18-hero-action .v10-icon{width:19px;height:19px}
.v18-hero-outline{border-color:#c9f8e6;color:#fff;background:#ffffff23;box-shadow:none}
.v18-hero-outline:hover{background:#ffffff34;color:#fff}
.v18-shell .v15-intake-hero{min-height:126px!important}
.v18-shell .v17-detail-page{max-width:1210px;gap:17px}
.v18-shell .v17-detail-shell .page-heading{display:none}
.v18-shell .v15-intake-shell .v15-intake-grid{margin-top:0}

/* Exact-sized, legible plate instead of a stretched full-width input. */
.v18-shell.v15-intake-shell .v16-plate{width:min(100%,385px);height:68px;border-width:2px;
  border-radius:6px;box-shadow:0 4px 0 #dfe9e3,0 7px 16px rgba(6,74,52,.08)}
.v18-shell.v15-intake-shell .v16-plate input{font-size:clamp(21px,2vw,28px)!important;
  font-family:'Arial Narrow','Roboto Condensed',Manrope,Arial,sans-serif!important;letter-spacing:.7px!important}
.v18-shell.v15-intake-shell .v16-plate .v16-plate-region{flex-basis:62px!important;width:62px!important;max-width:62px!important}
.v18-shell.v15-intake-shell .v16-plate .v16-plate-body{padding:0 7px!important;letter-spacing:1px!important}
.v18-shell.v15-intake-shell .v16-plate-uz{width:50px;flex-basis:50px;margin:8px 0;gap:3px}
.v18-shell.v15-intake-shell .v16-plate-uz svg{width:30px;height:17px}
.v18-shell.v15-intake-shell .v16-plate-uz b{font-size:12px}
.v18-shell.v15-intake-shell .v16-plate-hint{margin-top:9px}
.v18-shell.v15-intake-shell .v15-camera-panel{background:#fff}
.v18-shell.v15-intake-shell .v15-camera-frame{background:linear-gradient(155deg,#effbf5,#f9fefa);border-color:#c1e5d2}
.v18-shell.v15-intake-shell .v15-camera-buttons{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
.v18-shell.v15-intake-shell .v18-camera-file-label{display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;gap:7px;padding:10px 13px;border:1px solid #159773;border-radius:10px;
  background:#007f5a;color:#fff;cursor:pointer;font:800 11px/1.3 'DM Sans',sans-serif}
.v18-shell.v15-intake-shell .v18-camera-file-label:hover{background:#006948}
.v18-shell.v15-intake-shell .v18-camera-file-label .v16-icon{width:17px;height:17px}
.v18-visually-hidden{position:absolute!important;clip:rect(0,0,0,0)!important;width:1px!important;
  height:1px!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important}
.v18-shell.v15-intake-shell .v15-ai-status{margin-top:12px}
.v18-shell.v15-intake-shell .v16-color-feedback{display:none!important}

/* Vehicle card: strong primary action with no unrelated extras. */
.v18-shell .v17-release-cta.v18-release-trigger{width:100%;text-align:left;cursor:pointer;
  font-family:inherit;appearance:none}
.v18-shell .v17-release-cta.v18-release-trigger:focus-visible,.v18-edit-cta:focus-visible{
  outline:3px solid #f4b638;outline-offset:3px}
.v18-edit-cta{display:flex;align-items:center;gap:17px;padding:22px 28px;
  border:1px solid #c5e9d6;border-radius:17px;background:#fff;color:#006748;
  box-shadow:0 9px 24px rgba(0,68,47,.055);text-decoration:none;transition:border-color .2s,transform .2s}
.v18-edit-cta:hover{border-color:#52ba8b;transform:translateY(-2px);color:#005a40}
.v18-edit-icon{display:grid;place-items:center;width:52px;height:52px;flex:none;
  background:#e4f7ed;border-radius:13px;color:#007750}
.v18-edit-icon svg{width:25px;height:25px}
.v18-edit-cta>span:nth-child(2){display:grid;gap:6px;flex:1;min-width:0}
.v18-edit-cta strong{font:800 clamp(15px,1.6vw,18px)/1.3 Manrope,sans-serif}
.v18-edit-cta small{font:600 11px/1.45 'DM Sans',sans-serif;color:#759586}
.v18-edit-arrow{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#007f59;color:white}
.v18-edit-arrow svg{width:20px;height:20px}

/* Release: in-place confirmation. Server preview is the only source of estimates. */
.v18-release-dialog{position:fixed;inset:0;margin:auto;width:min(94vw,610px);max-width:610px;
  max-height:92dvh;overflow:auto;padding:0;border:1px solid #bddccd;border-radius:19px;
  background:#fff;color:#103c2d;box-shadow:0 35px 110px rgba(0,25,20,.4)}
.v18-release-dialog::backdrop{background:rgba(2,31,22,.78);backdrop-filter:blur(4px)}
.v18-modal-head{display:flex;align-items:flex-start;gap:20px;justify-content:space-between;
  padding:25px 27px;color:white;background:linear-gradient(115deg,#004735,#00906a)}
.v18-modal-head p{margin:0 0 9px;color:#acefd1;font:800 10px/1.3 'DM Sans',sans-serif;letter-spacing:1.4px}
.v18-modal-head h2{margin:0;max-width:460px;color:#fff;font:800 21px/1.35 Manrope,sans-serif;letter-spacing:-.65px}
.v18-modal-close{display:grid;place-items:center;flex:none;width:37px;height:37px;
  border:1px solid #ffffff45;border-radius:10px;color:white;background:#ffffff1a;cursor:pointer}
.v18-modal-close:hover{background:#ffffff32}
.v18-modal-body{padding:23px 27px 27px}
.v18-modal-identity{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:10px;padding:0 0 17px;border-bottom:1px solid #e1eee7;color:#114b36}
.v18-modal-identity .plate{font-size:16px}
.v18-modal-identity .plate .region,.v18-modal-identity .plate .number{padding:5px 7px}
.v18-modal-identity>strong{font:800 13px Manrope,sans-serif}
.v18-modal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0}
.v18-modal-stats>div{padding:13px 12px;border:1px solid #dfebe4;border-radius:10px;background:#f6fbf8}
.v18-modal-stats span,.v18-modal-total span{display:block;margin-bottom:7px;color:#6e9380;
  font:700 10px/1.4 'DM Sans',sans-serif}
.v18-modal-stats strong{display:block;color:#174e39;font:800 12px/1.5 'DM Sans',sans-serif;overflow-wrap:anywhere}
.v18-modal-total{padding:18px;border:1px solid #b8e8d0;border-radius:13px;
  background:linear-gradient(135deg,#edfdf4,#d9f8e8)}
.v18-modal-total strong{display:block;color:#006d4b;letter-spacing:-1px;font:900 29px/1.25 Manrope,sans-serif}
.v18-modal-total small{display:block;margin-top:7px;color:#638973;font:600 10px/1.45 'DM Sans',sans-serif}
.v18-release-feedback{margin:13px 0 17px;padding:10px 12px;border:1px solid #d8ece1;
  border-radius:9px;background:#f6fbf8;color:#44735c;font:700 11px/1.6 'DM Sans',sans-serif}
.v18-release-feedback.is-error{background:#fff2ef;color:#a43b2f;border-color:#f4c6b9}
.v18-modal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v18-modal-fields label{display:grid;gap:8px;margin:0;color:#315c47;font:800 11px/1.4 'DM Sans',sans-serif}
.v18-modal-fields em{font-style:normal;color:#cb5040}
.v18-modal-fields input{width:100%;min-width:0;min-height:46px;margin:0;padding:11px 12px;border:1px solid #cce3d5;
  border-radius:10px;background:#fff;font:600 12px 'DM Sans',sans-serif}
.v18-modal-fields input:focus{outline:2px solid #009e72;outline-offset:1px}
.v18-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}
.v18-modal-actions button{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:45px;padding:11px 17px;border-radius:11px;cursor:pointer;font:800 11.5px 'DM Sans',sans-serif}
.v18-modal-cancel{border:1px solid #d4e6dc;background:#fff;color:#587665}
.v18-modal-confirm{border:1px solid #007b5a;background:#007b59;color:#fff}
.v18-modal-confirm:hover{background:#005b42}
.v18-modal-confirm:disabled{opacity:.48;cursor:not-allowed}
.v18-modal-confirm svg{width:19px;height:19px}

/* Full-page edit mirrors the intake form, preserving original photos and timestamps. */
.v18-edit-page{max-width:1210px;margin:0 auto}
.v18-edit-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(285px,.85fr);align-items:start;gap:18px}
.v18-edit-main-card,.v18-edit-media-card{background:#fff;border:1px solid #d9ebe1;border-radius:18px;
  padding:26px;box-shadow:0 10px 28px rgba(0,68,47,.055)}
.v18-card-heading{display:flex;align-items:center;gap:12px;margin:0 0 25px}
.v18-card-heading>div{flex:1;min-width:0}
.v18-card-heading h2{margin:0 0 5px;color:#104733;font:800 17px/1.4 Manrope,sans-serif;letter-spacing:-.5px}
.v18-card-heading p{margin:0;color:#799b88;font:600 11px/1.5 'DM Sans',sans-serif}
.v18-step{display:grid;place-items:center;flex:none;width:44px;height:44px;color:#fff;
  background:linear-gradient(140deg,#00a477,#007350);border-radius:12px;font:900 12px Manrope,sans-serif}
.v18-step-photo{background:#e1f6eb;color:#00784f}
.v18-step-photo svg{width:25px;height:25px}
.v18-current-badge{padding:7px 10px;border-radius:8px;color:#007c58;background:#e7faef;font:800 10px Manrope,sans-serif}
.v18-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 14px}
.v18-edit-plate-field,.v18-edit-color{grid-column:1/-1}
.v18-edit-fields label{display:block;margin:0 0 10px;color:#285b46;font:800 11.5px/1.5 'DM Sans',sans-serif}
.v18-edit-fields label em{font-style:normal;color:#c7483f}
.v18-edit-field>input{width:100%;min-height:49px;padding:12px 14px;margin:0;border:1px solid #cde4d7;
  border-radius:10px;background:#fff;color:#103e2d;font:700 13px 'DM Sans',sans-serif}
.v18-edit-field>input:focus{border-color:#008d65;outline:3px solid #008d651c}
.v18-edit-plate{display:flex;align-items:stretch;width:min(100%,385px);height:68px;border:2px solid #1b2923;
  border-radius:6px;background:#fff;overflow:hidden;box-shadow:0 5px 0 #dae4df}
.v18-edit-plate input{border:0!important;box-shadow:none!important;border-radius:0!important;
  min-height:0!important;height:100%!important;padding:0!important;margin:0!important;
  background:transparent!important;color:#14211b!important;font:900 27px/1 'Arial Narrow',Manrope,Arial,sans-serif!important}
.v18-edit-plate #v18EditRegion{flex:0 0 62px;width:62px!important;text-align:center}
.v18-edit-plate #v18EditBody{flex:1 1 auto;width:1px!important;min-width:0!important;
  text-align:center;letter-spacing:.5px}
.v18-plate-divider{width:2px;height:75%;background:#82988a;align-self:center}
.v18-edit-uz{display:flex;flex:0 0 48px;width:48px;align-items:center;justify-content:center;
  flex-direction:column;gap:5px;margin:8px 0;border-left:1px solid #263e32;color:#134a88}
.v18-edit-uz .uz-flag{width:28px;height:14px;border:1px solid #b9c6bf}
.v18-edit-uz b{font:900 12px/1 'DM Sans',sans-serif;letter-spacing:1px}
.v18-edit-guard{display:flex;align-items:flex-start;gap:10px;margin:23px 0;padding:13px;
  border:1px solid #ccebdd;border-radius:11px;background:#f2faf5;color:#4c8268;
  font:650 11px/1.6 'DM Sans',sans-serif}
.v18-edit-guard svg{width:20px;height:20px;flex:none;color:#008c64}
.v18-edit-submit{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:10px}
.v18-edit-submit>a{padding:12px;text-decoration:none;color:#708c7a;font:800 12px 'DM Sans',sans-serif}
.v18-edit-submit button{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:15px 22px;border:1px solid #007950;border-radius:11px;background:#007d57;color:#fff;
  cursor:pointer;font:800 12px 'DM Sans',sans-serif;box-shadow:0 7px 15px #00573819}
.v18-edit-submit button:disabled{opacity:.5;cursor:wait}
.v18-edit-submit button svg{width:18px;height:18px}
.v18-edit-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:370px;overflow:auto}
.v18-edit-photo-grid a{display:block;aspect-ratio:1.15;border:1px solid #d5e8dc;border-radius:10px;overflow:hidden}
.v18-edit-photo-grid img{display:block;width:100%;height:100%;object-fit:cover}
.v18-photo-empty{color:#819b89;font:600 11px 'DM Sans',sans-serif}
.v18-view-original{display:inline-flex;align-items:center;gap:8px;margin-top:17px;color:#007651;
  font:800 11.5px 'DM Sans',sans-serif;text-decoration:none}
.v18-view-original svg{width:16px;height:16px}
@media(max-width:980px){.v18-edit-layout{grid-template-columns:1fr}.v18-edit-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.v18-shell .workspace>.v18-page-hero{min-height:0;flex-direction:column;
    align-items:stretch;gap:15px;padding:23px 20px;border-radius:15px}
  .v18-hero-side{justify-content:flex-start}.v18-hero-action{white-space:normal}
  .v18-modal-fields{grid-template-columns:1fr}.v18-modal-stats{grid-template-columns:1fr 1fr}
  .v18-edit-main-card,.v18-edit-media-card{padding:19px}.v18-edit-fields{grid-template-columns:1fr}
  .v18-edit-plate-field,.v18-edit-color{grid-column:auto}}
@media(max-width:480px){.v18-shell.v15-intake-shell .v16-plate{width:100%;height:59px}
  .v18-shell.v15-intake-shell .v16-plate input{font-size:clamp(18px,5vw,24px)!important}
  .v18-shell.v15-intake-shell .v16-plate .v16-plate-region{flex-basis:49px!important;width:49px!important;max-width:49px!important}
  .v18-shell.v15-intake-shell .v16-plate-uz{flex-basis:43px;width:43px}
  .v18-modal-head,.v18-modal-body{padding:20px}.v18-modal-head h2{font-size:17px}
  .v18-modal-stats{grid-template-columns:1fr}.v18-modal-actions{flex-direction:column-reverse}
  .v18-modal-actions button{width:100%}.v18-edit-cta{padding:16px;gap:12px}
  .v18-edit-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v18-current-badge{display:none}
  .v18-edit-submit{flex-direction:column-reverse}.v18-edit-submit>*{width:100%}
  .v18-edit-plate{width:100%;height:60px}.v18-edit-plate input{font-size:21px!important}
  .v18-edit-plate #v18EditRegion{flex-basis:49px;width:49px!important}
  .v18-edit-uz{flex-basis:42px;width:42px}}
@media(prefers-reduced-motion:reduce){.v18-hero-action,.v18-edit-cta{transition:none}}
