.customs-module{
  grid-column:1/-1;
  margin:2px 0 18px;
  padding:18px;
  border:1px solid #d9e2ea;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fbfd 0%,#f3f7fa 100%);
}
.customs-module-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.customs-module-head h4{
  margin:4px 0 5px;
  font-size:19px;
  color:#0f172a;
}
.customs-module-head p{
  margin:0;
  max-width:780px;
  line-height:1.45;
}
.customs-module .badge.is-ready{
  background:#dcfce7;
  color:#166534;
}
.customs-fields{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.customs-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:11px;
  border:1px solid #dbe4ea;
  border-radius:12px;
  background:#fff;
  transition:.15s ease;
}
.customs-field>span{
  font-size:13px;
  font-weight:700;
  color:#334155;
}
.customs-field input,
.customs-field select,
.customs-field textarea{
  min-height:42px;
  width:100%;
}
.customs-field textarea{
  resize:vertical;
  line-height:1.4;
}
.customs-field small{
  min-height:16px;
  color:#64748b;
  font-size:11px;
  line-height:1.35;
}
.customs-field.customs-missing{
  border-color:#ef4444;
  background:#fff1f2;
  box-shadow:0 0 0 2px rgba(239,68,68,.08);
}
.customs-field.customs-missing>span,
.customs-field.customs-missing small{
  color:#b91c1c;
}
.customs-field.customs-missing input,
.customs-field.customs-missing select{
  border-color:#ef4444!important;
  background:#fff!important;
}
.customs-field.customs-boundary-warning{
  border-color:#ef4444;
  background:#fff7ed;
  box-shadow:0 0 0 2px rgba(239,68,68,.08);
}
.customs-field.customs-boundary-warning>span,
.customs-field.customs-boundary-warning small{
  color:#b91c1c;
}
.customs-field.customs-boundary-warning select{
  border-color:#ef4444!important;
  background:#fff!important;
}
.customs-condition-field textarea{
  min-height:82px;
}
.customs-condition-field.customs-condition-original{
  border-color:#22c55e;
  background:#f0fdf4;
  box-shadow:0 0 0 2px rgba(34,197,94,.08);
}
.customs-condition-field.customs-condition-original>span,
.customs-condition-field.customs-condition-original small{
  color:#166534;
}
.customs-condition-field.customs-condition-original textarea{
  border-color:#22c55e!important;
  background:#fff!important;
}
.customs-condition-field.customs-condition-repaint{
  border-color:#ef4444;
  background:#fff1f2;
  box-shadow:0 0 0 2px rgba(239,68,68,.08);
}
.customs-condition-field.customs-condition-repaint>span,
.customs-condition-field.customs-condition-repaint small{
  color:#b91c1c;
}
.customs-condition-field.customs-condition-repaint textarea{
  border-color:#ef4444!important;
  background:#fff!important;
}
.customs-output-missing{
  padding:10px;
  border:1px solid #ef4444;
  border-radius:12px;
  background:#fff1f2;
}
.customs-output-missing>span{
  color:#b91c1c!important;
}
.customs-output-missing input{
  border-color:#ef4444!important;
}
.customs-context{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:8px 16px;
  margin-top:13px;
  padding:10px 12px;
  border-radius:10px;
  background:#eef4f7;
  color:#475569;
  font-size:12px;
}
.customs-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:13px;
}
.customs-result{
  margin-top:12px;
  padding:11px 12px;
  border-left:3px solid #1d4ed8;
  border-radius:8px;
  background:#eff6ff;
  line-height:1.45;
}
.customs-result b{color:#1e3a8a}
.customs-result small{color:#475569}
@media(max-width:860px){
  .customs-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .customs-module{padding:14px}
  .customs-module-head{flex-direction:column}
  .customs-fields{grid-template-columns:1fr}
  .customs-actions{display:grid;grid-template-columns:1fr}
  .customs-actions button{width:100%}
}
@media print{
  .customs-module{display:none!important}
}
