.mm-form,
.mm-dashboard,
.mm-login-wrap {
  max-width: 760px;
  margin: 24px auto;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.mm-field { margin-bottom: 16px; }
.mm-field label { display: block; font-weight: 600; margin-bottom: 7px; }
.mm-field input,
.mm-field select,
.mm-field textarea,
.mm-login-wrap input[type="text"],
.mm-login-wrap input[type="password"] {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 16px;
}
.mm-field textarea { min-height: 110px; }
.mm-grid { display: grid; gap: 16px; }
.mm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-button,
.mm-form button,
.mm-login-wrap input[type="submit"] {
  width: auto;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.mm-notice {
  max-width: 760px;
  margin: 16px auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f6f8;
  border-left: 4px solid currentColor;
}
.mm-profile-type { margin-bottom: 18px; }
@media (max-width: 768px) {
  .mm-form,
  .mm-dashboard,
  .mm-login-wrap {
    margin: 14px 0;
    padding: 16px;
    border-radius: 12px;
  }
  .mm-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .mm-button,
  .mm-form button,
  .mm-login-wrap input[type="submit"] { width: 100%; }
}


/* v0.1.52 registration UX hotfix */
.mm-notice .mm-notice-link{
  font-weight:700;
  margin-left:.35rem;
  text-decoration:underline;
}


/* v0.1.54 registration password UX */
.mm-password-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.mm-password-wrap input{
  width:100%;
  padding-right:46px !important;
}
.mm-password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:transparent;
  cursor:pointer;
  font-size:16px;
  line-height:1;
  opacity:.72;
}
.mm-password-toggle:hover,
.mm-password-toggle:focus{
  opacity:1;
  background:rgba(0,0,0,.06);
  outline:none;
}
.mm-password-toggle.is-visible{
  background:rgba(77,137,124,.14);
}


/* v0.1.56 modern profile UX */
.mm-profile-shell{
  max-width:920px;
  margin:0 auto 48px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.mm-profile-hero{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  border:1px solid rgba(77,137,124,.18);
  border-radius:22px;
  background:linear-gradient(135deg, rgba(77,137,124,.10), rgba(255,255,255,.95));
  box-shadow:0 16px 45px rgba(31,45,61,.06);
}
.mm-profile-avatar{
  width:64px;
  height:64px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#4d897c;
  color:#fff;
  font-weight:800;
  font-size:22px;
  flex:0 0 auto;
}
.mm-profile-hero-main{
  min-width:0;
  flex:1;
}
.mm-profile-hero-main h2{
  margin:0 0 4px;
  font-size:26px;
  line-height:1.15;
}
.mm-profile-hero-main p{
  margin:0;
  color:#60756f;
}
.mm-profile-email-badge{
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}
.mm-profile-email-badge.is-verified{
  background:#e6f7ee;
  color:#217a49;
}
.mm-profile-email-badge.is-unverified{
  background:#fff4db;
  color:#9a6500;
}
.mm-profile-card{
  border:1px solid rgba(31,45,61,.10);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 45px rgba(31,45,61,.06);
  padding:22px;
}
.mm-profile-card h3{
  margin:0;
  font-size:20px;
}
.mm-profile-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}
.mm-profile-card-head p,
.mm-profile-muted{
  margin:6px 0 0;
  color:#60756f;
  font-size:14px;
}
.mm-profile-identity-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.mm-profile-identity-grid div{
  background:#f7faf9;
  border:1px solid rgba(77,137,124,.14);
  border-radius:16px;
  padding:14px;
}
.mm-profile-identity-grid span{
  display:block;
  color:#60756f;
  font-size:13px;
  margin-bottom:5px;
}
.mm-profile-identity-grid strong{
  display:block;
  color:#102033;
}
.mm-profile-grid{
  gap:18px;
}
.mm-profile-form .mm-field label{
  font-weight:700;
  color:#102033;
}
.mm-profile-form input,
.mm-profile-form select,
.mm-profile-form textarea,
.mm-profile-card input,
.mm-profile-card select,
.mm-profile-card textarea{
  border-radius:12px !important;
  border:1px solid rgba(31,45,61,.16) !important;
  min-height:44px;
}
.mm-profile-form input:focus,
.mm-profile-form select:focus,
.mm-profile-form textarea:focus{
  border-color:#4d897c !important;
  box-shadow:0 0 0 3px rgba(77,137,124,.14);
  outline:none;
}
.mm-field-full{
  grid-column:1 / -1;
}
.mm-profile-success{
  min-height:44px;
  display:flex;
  align-items:center;
  border-radius:12px;
  padding:0 14px;
  background:#e6f7ee;
  color:#217a49;
  font-weight:700;
}
.mm-profile-verify-box{
  display:flex;
  align-items:flex-end;
}
.mm-profile-actions{
  margin-top:18px;
  justify-content:flex-end;
}
.mm-profile-actions .mm-button,
.mm-email-verify-form .mm-button{
  min-height:44px;
  border-radius:12px;
}
@media(max-width:760px){
  .mm-profile-shell{
    padding:0 12px;
  }
  .mm-profile-hero{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .mm-profile-avatar{
    width:54px;
    height:54px;
    border-radius:16px;
    font-size:18px;
  }
  .mm-profile-hero-main h2{
    font-size:21px;
  }
  .mm-profile-email-badge{
    width:100%;
    text-align:center;
  }
  .mm-profile-card{
    padding:16px;
    border-radius:18px;
  }
  .mm-profile-identity-grid,
  .mm-grid.mm-grid-2.mm-profile-grid{
    grid-template-columns:1fr !important;
  }
  .mm-profile-actions{
    justify-content:stretch;
  }
  .mm-profile-actions .mm-button,
  .mm-email-verify-form,
  .mm-email-verify-form .mm-button{
    width:100%;
  }
}


/* v0.1.57 profile reputation placement */
.mm-profile-hero-reputation{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.mm-profile-hero-reputation .mm-reputation,
.mm-profile-hero-reputation .mm-reputation-main,
.mm-profile-hero-reputation .mm-reputation-badges{
  margin:0 !important;
  padding:0 !important;
}
.mm-profile-hero-reputation .mm-reputation{
  box-shadow:none !important;
  border:0 !important;
  background:transparent !important;
}
.mm-profile-hero-reputation .mm-reputation-main{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  align-items:center !important;
}
.mm-profile-hero-reputation *{
  max-width:100%;
}
@media(max-width:760px){
  .mm-profile-hero-reputation{
    width:100%;
  }
}


/* v0.1.58 VAT VIES verification */
.mm-vat-verify-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-radius:16px;
  border:1px solid rgba(77,137,124,.16);
  background:#f7faf9;
  padding:16px;
}
.mm-vat-verify-box strong{
  display:block;
  color:#102033;
  font-size:16px;
  margin-bottom:4px;
}
.mm-vat-verify-box span{
  display:block;
  color:#60756f;
  font-size:14px;
}
.mm-vat-verify-box.is-verified{
  background:#e6f7ee;
  border-color:rgba(33,122,73,.25);
}
.mm-vat-verify-form{
  margin:0;
  flex:0 0 auto;
}
.mm-vat-verify-form .mm-button[disabled]{
  opacity:.55;
  cursor:not-allowed;
}
@media(max-width:760px){
  .mm-vat-verify-box{
    align-items:stretch;
    flex-direction:column;
  }
  .mm-vat-verify-form,
  .mm-vat-verify-form .mm-button{
    width:100%;
  }
}


/* v0.1.59 persisted VIES result display */
.mm-vat-vies-result{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(33,122,73,.16);
}
.mm-vat-vies-result p{
  margin:3px 0;
  font-size:13px;
  color:#40534d;
}
.mm-vat-vies-result p strong{
  display:inline;
  font-size:13px;
}


/* v0.1.60 business profile UX upgrade */
.mm-profile-hero-side{display:flex;flex-direction:column;gap:10px;align-items:flex-end;min-width:210px}
.mm-profile-completion{width:100%;min-width:190px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.75);border:1px solid rgba(77,137,124,.14)}
.mm-profile-completion span{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#60756f;margin-bottom:7px}
.mm-profile-completion strong{color:#102033}.mm-profile-progress{height:8px;border-radius:999px;background:rgba(77,137,124,.13);overflow:hidden}.mm-profile-progress i{display:block;height:100%;border-radius:999px;background:#4d897c}
.mm-profile-business-summary{display:flex;gap:16px;align-items:flex-start;padding:18px;border-radius:22px;border:1px solid rgba(31,45,61,.10);box-shadow:0 16px 45px rgba(31,45,61,.06)}
.mm-profile-business-summary.is-verified{background:linear-gradient(135deg,#e6f7ee,#fff);border-color:rgba(33,122,73,.22)}
.mm-profile-business-summary.is-unverified{background:linear-gradient(135deg,#fff8e8,#fff);border-color:rgba(154,101,0,.18)}
.mm-business-summary-icon{width:52px;height:52px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:0 8px 25px rgba(31,45,61,.08);font-size:25px;flex:0 0 auto}
.mm-business-summary-main{flex:1;min-width:0}.mm-business-summary-main h3{margin:0 0 4px;font-size:21px;color:#102033}.mm-business-summary-main p{margin:0 0 12px;color:#60756f}
.mm-business-summary-signals{display:flex;flex-wrap:wrap;gap:8px}.mm-business-summary-signals span{border-radius:999px;padding:7px 10px;font-size:13px;font-weight:700}.mm-business-summary-signals .done{background:#e6f7ee;color:#217a49}.mm-business-summary-signals .todo{background:#f1f4f3;color:#60756f}
.mm-business-profile-card{overflow:hidden}.mm-business-card-head{padding-bottom:14px;border-bottom:1px solid rgba(31,45,61,.08)}.mm-verified-business-pill{flex:0 0 auto;border-radius:999px;padding:8px 12px;background:#e6f7ee;color:#217a49;font-weight:800;font-size:13px}
.mm-vies-autofill-note{display:flex;gap:10px;align-items:center;justify-content:space-between;border-radius:16px;background:#f7faf9;border:1px dashed rgba(77,137,124,.30);padding:12px 14px;margin-bottom:18px}.mm-vies-autofill-note strong{color:#102033}.mm-vies-autofill-note span{color:#60756f;font-size:13px}
.mm-profile-form-section{margin-top:20px;padding-top:18px;border-top:1px solid rgba(31,45,61,.08)}.mm-profile-form-section:first-of-type{margin-top:0;padding-top:0;border-top:0}.mm-profile-form-section h4{margin:0 0 14px;font-size:15px;text-transform:uppercase;letter-spacing:.04em;color:#4d897c}
.mm-business-profile-card .mm-field{background:#fbfdfc;border:1px solid rgba(31,45,61,.07);border-radius:16px;padding:12px}.mm-business-profile-card .mm-field label{margin-bottom:7px;display:block}.mm-business-profile-card .mm-field small{display:block;margin-top:7px;color:#60756f}.mm-business-profile-card input[readonly]{background:#f6f8f7!important}
@media(max-width:760px){.mm-profile-hero-side{width:100%;min-width:0;align-items:stretch}.mm-profile-completion{min-width:0}.mm-profile-business-summary{padding:15px;border-radius:18px}.mm-business-summary-icon{width:44px;height:44px;border-radius:15px;font-size:21px}.mm-business-summary-main h3{font-size:18px}.mm-vies-autofill-note{flex-direction:column;align-items:flex-start}.mm-verified-business-pill{width:100%;text-align:center}.mm-business-profile-card .mm-field{padding:10px}}

/* v0.1.71 profile NUTS3 area selector */
.mm-profile-area-select optgroup{font-weight:700;color:#4d897c}
.mm-profile-area-select option{color:#102033}


/* v0.1.72 mobile registration password fix
   Some mobile browsers/themes place touch targets over password fields. Keep the
   fields simple on small screens so users can reliably focus and type passwords. */
@media (max-width: 768px){
  .mm-register-form .mm-password-wrap input{
    min-height:48px;
    font-size:16px; /* avoids mobile zoom/focus glitches */
    padding-right:14px !important;
    -webkit-appearance:none;
    appearance:none;
    position:relative;
    z-index:1;
  }
  .mm-register-form .mm-password-toggle{
    display:none !important;
  }
}

/* v0.1.74 login forgot-password placement */
.mm-login-wrap .mm-login-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:8px 0 16px;
}
.mm-login-wrap .mm-login-options label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0;
}
.mm-login-wrap .mm-forgot-password-link{
  color:#4d897c;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.mm-login-wrap .mm-forgot-password-link:hover,
.mm-login-wrap .mm-forgot-password-link:focus{
  text-decoration:underline;
}
@media(max-width:768px){
  .mm-login-wrap .mm-login-options{
    align-items:flex-start;
  }
}

/* v0.1.84 clearer MeatManagers flash notices and verification hints */
.mm-notice{
  font-weight:700;
  padding:14px 16px;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(20,40,35,.06);
}
.mm-notice-success{background:#ecfdf5;color:#166534;border-left:5px solid #22c55e;}
.mm-notice-warning{background:#fff7ed;color:#9a3412;border-left:5px solid #f97316;}
.mm-notice-error{background:#fff1f2;color:#991b1b;border-left:5px solid #dc2626;}
.mm-notice-info{background:#f0fdfa;color:#0f766e;border-left:5px solid #14b8a6;}
.mm-notice a,.mm-notice .mm-notice-link{color:inherit;font-weight:800;text-decoration:underline;}
.mm-business-summary-signals .done{background:#e8f7ef;color:#166534;}
.mm-business-summary-signals .todo{background:#f4f6f8;color:#64748b;}
