.df-translation-modal-root[hidden] { display: none !important; }
.df-translation-modal-root{
  position: fixed;
  inset: 0;
  z-index: 10040;
}
.df-translation-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.34);
}
.df-translation-dialog{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.df-translation-modal-card{
  background: #fff;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15,23,42,.18);
  color: #334155;
}
.df-translation-modal-card-compact{
  width: min(520px, calc(100vw - 48px));
  padding: 20px;
}
.df-translation-modal-card-wide{
  width: min(1080px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.df-translation-modal-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.df-translation-modal-header h3{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.df-translation-modal-header p{
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}
.df-translation-close{
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.df-translation-field-block{ margin-bottom: 14px; }
.df-translation-field-label{
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.df-translation-segment{
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.df-translation-segment button{
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 8px 16px;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
}
.df-translation-segment button.active{
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15,23,42,.14);
}
.df-translation-static-field,
.df-translation-input{
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
}
.df-translation-language-list{
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px;
  background: #fff;
}
.df-translation-language-item{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 6px;
  font-size: 13px;
  color: #334155;
}
.df-translation-modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.df-translation-btn{
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.df-translation-btn.primary{
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.df-translation-summary{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.df-translation-summary > div{
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafc;
}
.df-translation-summary .label{
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  margin-bottom: 4px;
}
.df-translation-table-wrap{
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.df-translation-table{
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}
.df-translation-table th,
.df-translation-table td{
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
  vertical-align: top;
  text-align: left;
  background: #fff;
  font-size: 13px;
}
.df-translation-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  font-size: 12px;
}
.df-translation-table .sticky{
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
}
.df-translation-table thead .sticky{
  background: #f8fafc;
  z-index: 4;
}
.df-translation-cell-input{
  width: 220px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 13px;
}
.df-translation-status{
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}
.df-translation-empty{
  text-align: center;
  color: #64748b;
  padding: 24px !important;
}
.df-translation-custom-row[hidden]{ display:none !important; }
.df-translation-custom-box{
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}
.df-translation-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #334155;
}
.df-translation-keyline{
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}
.df-translation-keyline code{
  display: inline-block;
  margin-left: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  color: #0f172a;
}
